Function at 0x481760
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0xa4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov byte [esp + 0x12], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
je 0x481793
push eax
call fcn.004226c0
add esp, 4
mov dword [esp + 0x38], eax
jmp 0x481797
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov dword [eax], ebp
mov byte [ecx], 0
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 0x68]
mov bl, byte [eax + 0x7e]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov esi, closesocket
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov byte [esp + 0x5c], 0
mov ecx, dword [eax + 0x74]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x70]
push ebp
cmp bl, 0x21
push edx
lea ecx, [esp + 0x48]
sete byte [esp + 0x32]
call fcn.00490d80
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x40]
call fcn.004924b0
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dl, byte [ecx + eax]
inc ecx
mov dword [esp + 0x40], ecx
mov byte [esp + 0x1a], dl
mov dl, byte [ecx + eax]
inc ecx
mov byte [esp + 0x1b], dl
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov byte [esp + 0x80], 0
xor ebx, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
cmp ecx, ebp
mov dword [esp + 0x40], ecx
jl 0x481bfe
mov edx, dword [esp + 0x44]
cmp edx, 0xffffffff
je 0x481881
lea esi, [ecx + 1]
cmp esi, edx
jg 0x481bfe
mov al, byte [ecx + eax]
inc ecx
test al, al
mov byte [esp + 0x13], al
mov dword [esp + 0x40], ecx
je 0x481c03
push 0x20
call fcn.0043f080
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x481f03
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esi + 0x1c], 0
mov dword [esp + 0x2c], esi
jne 0x4818c4
xor ebx, ebx
mov dword [esp + 0x34], esi
jmp 0x4818c7
mov dword [ebx + 0x1c], esi
mov al, byte [esp + 0x13]
and al, 8
mov dword [esp + 0x30], ebx
mov byte [esp + 0x27], al
je 0x481a66
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add eax, ecx
add ecx, 2
mov dword [esp + 0x40], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
mov ecx, dword [esp + 0x20]
push eax
call fcn.00491880
mov edi, eax
test edi, edi
je 0x481f03
cmp dword [edi + 0x78], 3
jne 0x481f03
mov cl, byte [edi + 0x7e]
xor ebp, ebp
cmp cl, 0xa
jne 0x4819a5
mov eax, dword [edi]
cmp eax, ebp
je 0x4819a5
mov edx, dword [edi + 4]
push edx
push ebp
push eax
lea ecx, [esp + 0x6c]
call fcn.00490d80
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
movzx ecx, byte [eax + edx]
lea ecx, [eax + ecx + 1]
mov dword [esp + 0x64], ecx
mov al, byte [ecx + edx]
mov dl, al
shr al, 5
and al, 1
inc ecx
mov dword [esp + 0x64], ecx
and dl, 1
mov byte [esi + 1], al
mov eax, dword [esp + 0x20]
mov byte [esi], dl
mov eax, dword [eax + 0x210]
cmp eax, ebp
jne 0x481978
mov ecx, dword [esp + 0x20]
call fcn.00494a20
cmp eax, 5
jle 0x481988
cmp word [edi + 0x34], 0x3e
jne 0x481988
inc dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
add edx, ecx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x64]
mov dword [esi + 0xc], eax
jmp 0x481a86
cmp cl, 0x30
je 0x4819b5
cmp cl, 0x4b
jne 0x481f03
xor ebp, ebp
movzx eax, word [edi + 0x36]
mov cl, byte [edi + 0x38]
shl eax, 1
test cl, 8
je 0x4819c5
add eax, eax
mov ecx, dword [edi + 0x70]
cmp ecx, ebp
jne 0x4819d5
cmp dword [edi + 0x74], ebp
jne 0x481ee6
mov edx, dword [edi + 0x74]
push edx
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.00490d80
mov al, byte [edi + 0x38]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
test al, 8
lea eax, [edx + ecx]
je 0x481a1c
add edx, 4
mov dword [esp + 0x64], edx
movzx ebx, byte [eax + 1]
xor edx, edx
mov dh, byte [eax + 3]
mov dl, byte [eax + 2]
movzx eax, byte [eax]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x30]
shl edx, 8
or eax, edx
jmp 0x481a2c
add edx, 2
mov dword [esp + 0x64], edx
xor edx, edx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov eax, edx
add ecx, eax
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x64]
cmp eax, ebp
mov dword [esi + 0xc], edx
jl 0x481ef2
cmp eax, dword [esp + 0x68]
jg 0x481ef2
mov al, byte [edi + 0x38]
shr al, 2
and al, 1
mov byte [esi], al
mov cl, byte [edi + 0x38]
shr cl, 6
and cl, 1
mov byte [esi + 1], cl
jmp 0x481a86
test ebx, ebx
je 0x481f03
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov cl, byte [ebx]
mov byte [esi], cl
mov dl, byte [ebx + 1]
mov byte [esi + 1], dl
xor ebp, ebp
mov al, byte [esp + 0x13]
test al, 4
je 0x481aa9
movzx eax, byte [esp + 0x26]
push eax
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x44]
call fcn.00490ed0
mov al, byte [esp + 0x13]
test al, 1
je 0x481ab2
add dword [esp + 0x40], 2
test al, 2
je 0x481ad5
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [ecx + edx]
add ecx, 2
mov dword [esp + 0x40], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov word [esi + 2], cx
jmp 0x481ae7
cmp ebx, ebp
je 0x481ae3
mov dx, word [ebx + 2]
mov word [esi + 2], dx
jmp 0x481ae7
mov word [esi + 2], bp
mov al, byte [esp + 0x27]
test al, al
je 0x481b0d
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add eax, ecx
add ecx, 2
mov dword [esp + 0x40], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov word [esi + 4], cx
jmp 0x481b1f
cmp ebx, ebp
je 0x481b1b
mov dx, word [ebx + 4]
mov word [esi + 4], dx
jmp 0x481b1f
mov word [esi + 4], bp
cmp dword [esp + 0xb4], ebp
je 0x481b5c
cmp ebx, ebp
je 0x481b5c
movsx eax, word [ebx + 2]
movzx ecx, word [esi + 4]
movsx edx, word [esi + 2]
add eax, ecx
cmp edx, eax
jle 0x481b5c
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xbc]
mov byte [esi + 6], 1
mov byte [ecx], 1
jmp 0x481b60
mov byte [esi + 6], 0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esp + 0x40], ecx
mov byte [esi + 0x10], al
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
add edx, ecx
mov dword [esi + 0x14], edx
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
sub ecx, edi
mov dword [esi + 0x18], ecx
movzx ecx, al
mov al, byte [esi + 1]
add edx, ecx
test al, al
mov dword [esp + 0x1c], edx
je 0x481bb2
mov edx, dword [esp + 0x14]
lea eax, [ecx + ecx]
cmp edx, eax
ja 0x481bc1
mov dword [esp + 0x14], eax
jmp 0x481bc1
cmp byte [esi], 0
jne 0x481bc1
cmp dword [esp + 0x14], ecx
ja 0x481bc1
mov dword [esp + 0x14], ecx
movzx edx, byte [esp + 0x1a]
movzx eax, byte [esp + 0x1b]
add eax, edx
imul ecx, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
and ecx, 0x80000007
jns 0x481be8
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x481beb
inc eax
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x3c]
jmp 0x481861
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x481c23
inc eax
push eax
call fcn.0043f080
add esp, 4
cmp eax, ebp
mov dword [esp + 0x28], eax
je 0x481f03
xor ebp, ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x481f03
lea ecx, [eax + eax + 2]
push ecx
call fcn.0043f080
mov edx, dword [esp + 0xbc]
add esp, 4
test eax, eax
mov dword [edx], eax
je 0x481f03
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0xac]
cmp eax, ecx
mov dword [esp + 0x14], 0
jb 0x481c70
lea eax, [ecx - 1]
mov dword [esp + 0xac], eax
mov ebx, dword [esp + 0xb0]
cmp ebx, ecx
jb 0x481c85
lea ebx, [ecx - 1]
mov dword [esp + 0xb0], ebx
cmp ebx, eax
jae 0x481c92
mov ebx, eax
mov dword [esp + 0xb0], ebx
mov edi, dword [esp + 0x34]
sub ebx, eax
inc ebx
test edi, edi
mov dword [esp + 0x84], ebx
je 0x481ec1
jmp 0x481cb0
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x481ce9
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xac]
jbe 0x481ce9
cmp eax, dword [esp + 0xb0]
ja 0x481ce9
mov al, byte [edi + 6]
test al, al
je 0x481ce9
push ecx
push esi
call fcn.004cabd0
mov eax, dword [esp + 0x40]
add esp, 8
lea esi, [esi + eax*2]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
push ecx
push 0
push edx
lea ecx, [esp + 0x48]
call fcn.00490d80
lea ecx, [esp + 0x3c]
call fcn.004911d0
movzx eax, byte [edi + 0x10]
mov ebp, dword [esp + 0x28]
dec eax
mov dword [esp + 0x2c], eax
js 0x481e16
movzx eax, byte [esp + 0x1a]
movzx ecx, byte [esp + 0x1b]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x40]
call fcn.00491210
mov ebx, eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.004912a0
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jb 0x481df7
mov edx, dword [esp + 0xb0]
cmp eax, edx
ja 0x481df7
cmp byte [edi], 0
lea eax, [ebx + ebx]
jne 0x481d7a
mov eax, ebx
mov ecx, dword [edi + 0xc]
cmp eax, ecx
ja 0x481f03
push ecx
push eax
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x6c]
call fcn.00490d80
mov al, byte [edi + 1]
test al, al
mov edx, dword [esp + 0x60]
je 0x481dc4
mov ecx, dword [esp + 0x64]
lea eax, [ecx + edx]
add ecx, 2
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
mov cl, byte [eax]
mov eax, ecx
test ah, 0xff
je 0x481dbf
mov byte [ebp], ah
inc ebp
mov byte [ebp], al
jmp 0x481df6
cmp byte [edi], 0
je 0x481de7
mov ecx, dword [esp + 0x64]
lea eax, [ecx + edx]
add ecx, 2
mov dword [esp + 0x64], ecx
xor ecx, ecx
mov ch, byte [eax + 1]
add esi, 2
mov cl, byte [eax]
mov word [esi - 2], cx
jmp 0x481df7
mov eax, dword [esp + 0x64]
mov cl, byte [eax + edx]
inc eax
mov dword [esp + 0x64], eax
mov byte [ebp], cl
inc ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jns 0x481d30
mov ebx, dword [esp + 0x84]
lea ecx, [esp + 0x3c]
call fcn.004911e0
cmp ebp, dword [esp + 0x28]
jbe 0x481e72
mov al, byte [edi + 1]
test al, al
jne 0x481e31
cmp byte [edi], 0
jne 0x481e72
mov edx, dword [esp + 0xb8]
mov byte [ebp], 0
mov eax, dword [edx]
mov ecx, esi
sub ecx, eax
mov eax, dword [esp + 0x1c]
sar ecx, 1
sub eax, ecx
mov cl, byte [edi + 1]
inc eax
push eax
mov eax, dword [esp + 0x2c]
neg cl
push esi
push 0xffffffffffffffff
push eax
push 0
sbb ecx, ecx
and ecx, 0x3a4
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jbe 0x481e72
lea esi, [esi + eax*2 - 2]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb0]
cmp eax, ecx
ja 0x481e8e
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x481cb0
jmp 0x481ec1
inc ecx
cmp eax, ecx
jne 0x481ec1
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x481ec1
mov al, byte [edi + 6]
test al, al
je 0x481ec1
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x481ec1
mov ecx, eax
push ecx
push esi
call fcn.004cabd0
mov eax, dword [esp + 0x40]
add esp, 8
lea esi, [esi + eax*2]
add ebx, eax
mov edx, dword [esp + 0xb8]
mov word [esi], 0
mov eax, dword [edx]
lea ecx, [eax + ebx*2 + 2]
add esi, 2
cmp esi, ecx
mov byte [esp + 0x12], 1
je 0x481f03
mov byte [esp + 0x12], 0
jmp 0x481f03
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0xd0]
jmp 0x481efc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xd0]
push 1
call fcn.004a7310
mov esi, dword [esp + 0x34]
test esi, esi
je 0x481f22
jmp 0x481f10
mov eax, esi
mov esi, dword [esi + 0x1c]
push eax
call fcn.0043f0a0
add esp, 4
test esi, esi
jne 0x481f10
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043f0a0
mov al, byte [esp + 0x16]
add esp, 4
test al, al
pop edi
pop esi
pop ebp
pop ebx
je 0x481f44
mov al, 1
add esp, 0x94
ret
mov edx, dword [esp + 0xa8]
mov eax, dword [edx]
push eax
call fcn.0043f0a0
add esp, 4
xor al, al
add esp, 0x94
ret