Function at 0x4818c0
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 0x4818f3
push eax
call fcn.004cb420
add esp, 4
mov dword [esp + 0x38], eax
jmp 0x4818f7
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.00491160
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x40]
call fcn.004928e0
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 0x481d5e
mov edx, dword [esp + 0x44]
cmp edx, 0xffffffff
je 0x4819e1
lea esi, [ecx + 1]
cmp esi, edx
jg 0x481d5e
mov al, byte [ecx + eax]
inc ecx
test al, al
mov byte [esp + 0x13], al
mov dword [esp + 0x40], ecx
je 0x481d63
push 0x20
call fcn.0043f000
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x482063
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esi + 0x1c], 0
mov dword [esp + 0x2c], esi
jne 0x481a24
xor ebx, ebx
mov dword [esp + 0x34], esi
jmp 0x481a27
mov dword [ebx + 0x1c], esi
mov al, byte [esp + 0x13]
and al, 8
mov dword [esp + 0x30], ebx
mov byte [esp + 0x27], al
je 0x481bc6
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.00491c60
mov edi, eax
test edi, edi
je 0x482063
cmp dword [edi + 0x78], 3
jne 0x482063
mov cl, byte [edi + 0x7e]
xor ebp, ebp
cmp cl, 0xa
jne 0x481b05
mov eax, dword [edi]
cmp eax, ebp
je 0x481b05
mov edx, dword [edi + 4]
push edx
push ebp
push eax
lea ecx, [esp + 0x6c]
call fcn.00491160
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 0x481ad8
mov ecx, dword [esp + 0x20]
call fcn.00494e90
cmp eax, 5
jle 0x481ae8
cmp word [edi + 0x34], 0x3e
jne 0x481ae8
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 0x481be6
cmp cl, 0x30
je 0x481b15
cmp cl, 0x4b
jne 0x482063
xor ebp, ebp
movzx eax, word [edi + 0x36]
mov cl, byte [edi + 0x38]
shl eax, 1
test cl, 8
je 0x481b25
add eax, eax
mov ecx, dword [edi + 0x70]
cmp ecx, ebp
jne 0x481b35
cmp dword [edi + 0x74], ebp
jne 0x482046
mov edx, dword [edi + 0x74]
push edx
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.00491160
mov al, byte [edi + 0x38]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
test al, 8
lea eax, [edx + ecx]
je 0x481b7c
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 0x481b8c
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 0x482052
cmp eax, dword [esp + 0x68]
jg 0x482052
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 0x481be6
test ebx, ebx
je 0x482063
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 0x481c09
movzx eax, byte [esp + 0x26]
push eax
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x44]
call fcn.004912b0
mov al, byte [esp + 0x13]
test al, 1
je 0x481c12
add dword [esp + 0x40], 2
test al, 2
je 0x481c35
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 0x481c47
cmp ebx, ebp
je 0x481c43
mov dx, word [ebx + 2]
mov word [esi + 2], dx
jmp 0x481c47
mov word [esi + 2], bp
mov al, byte [esp + 0x27]
test al, al
je 0x481c6d
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 0x481c7f
cmp ebx, ebp
je 0x481c7b
mov dx, word [ebx + 4]
mov word [esi + 4], dx
jmp 0x481c7f
mov word [esi + 4], bp
cmp dword [esp + 0xb4], ebp
je 0x481cbc
cmp ebx, ebp
je 0x481cbc
movsx eax, word [ebx + 2]
movzx ecx, word [esi + 4]
movsx edx, word [esi + 2]
add eax, ecx
cmp edx, eax
jle 0x481cbc
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 0x481cc0
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 0x481d12
mov edx, dword [esp + 0x14]
lea eax, [ecx + ecx]
cmp edx, eax
ja 0x481d21
mov dword [esp + 0x14], eax
jmp 0x481d21
cmp byte [esi], 0
jne 0x481d21
cmp dword [esp + 0x14], ecx
ja 0x481d21
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 0x481d48
dec ecx
or ecx, 0xfffffff8
inc ecx
je 0x481d4b
inc eax
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x2c]
add ecx, eax
mov eax, dword [esp + 0x3c]
jmp 0x4819c1
mov byte [esp + 0x5c], 1
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x481d83
inc eax
push eax
call fcn.0043f000
add esp, 4
cmp eax, ebp
mov dword [esp + 0x28], eax
je 0x482063
xor ebp, ebp
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x482063
lea ecx, [eax + eax + 2]
push ecx
call fcn.0043f000
mov edx, dword [esp + 0xbc]
add esp, 4
test eax, eax
mov dword [edx], eax
je 0x482063
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0xac]
cmp eax, ecx
mov dword [esp + 0x14], 0
jb 0x481dd0
lea eax, [ecx - 1]
mov dword [esp + 0xac], eax
mov ebx, dword [esp + 0xb0]
cmp ebx, ecx
jb 0x481de5
lea ebx, [ecx - 1]
mov dword [esp + 0xb0], ebx
cmp ebx, eax
jae 0x481df2
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 0x482021
jmp 0x481e10
mov ecx, dword [esp + 0xb4]
test ecx, ecx
je 0x481e49
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0xac]
jbe 0x481e49
cmp eax, dword [esp + 0xb0]
ja 0x481e49
mov al, byte [edi + 6]
test al, al
je 0x481e49
push ecx
push esi
call fcn.004cb530
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.00491160
lea ecx, [esp + 0x3c]
call fcn.004915b0
movzx eax, byte [edi + 0x10]
mov ebp, dword [esp + 0x28]
dec eax
mov dword [esp + 0x2c], eax
js 0x481f76
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.004915f0
mov ebx, eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
call fcn.00491680
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0x14]
cmp eax, ecx
jb 0x481f57
mov edx, dword [esp + 0xb0]
cmp eax, edx
ja 0x481f57
cmp byte [edi], 0
lea eax, [ebx + ebx]
jne 0x481eda
mov eax, ebx
mov ecx, dword [edi + 0xc]
cmp eax, ecx
ja 0x482063
push ecx
push eax
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x6c]
call fcn.00491160
mov al, byte [edi + 1]
test al, al
mov edx, dword [esp + 0x60]
je 0x481f24
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 0x481f1f
mov byte [ebp], ah
inc ebp
mov byte [ebp], al
jmp 0x481f56
cmp byte [edi], 0
je 0x481f47
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 0x481f57
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 0x481e90
mov ebx, dword [esp + 0x84]
lea ecx, [esp + 0x3c]
call fcn.004915c0
cmp ebp, dword [esp + 0x28]
jbe 0x481fd2
mov al, byte [edi + 1]
test al, al
jne 0x481f91
cmp byte [edi], 0
jne 0x481fd2
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 0x481fd2
lea esi, [esi + eax*2 - 2]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb0]
cmp eax, ecx
ja 0x481fee
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x481e10
jmp 0x482021
inc ecx
cmp eax, ecx
jne 0x482021
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x482021
mov al, byte [edi + 6]
test al, al
je 0x482021
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x482021
mov ecx, eax
push ecx
push esi
call fcn.004cb530
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 0x482063
mov byte [esp + 0x12], 0
jmp 0x482063
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0xd0]
jmp 0x48205c
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xd0]
push 1
call fcn.004a78e0
mov esi, dword [esp + 0x34]
test esi, esi
je 0x482082
jmp 0x482070
mov eax, esi
mov esi, dword [esi + 0x1c]
push eax
call fcn.0043f020
add esp, 4
test esi, esi
jne 0x482070
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043f020
mov al, byte [esp + 0x16]
add esp, 4
test al, al
pop edi
pop esi
pop ebp
pop ebx
je 0x4820a4
mov al, 1
add esp, 0x94
ret
mov edx, dword [esp + 0xa8]
mov eax, dword [edx]
push eax
call fcn.0043f020
add esp, 4
xor al, al
add esp, 0x94
ret