Function at 0x40be10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a3550
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4d16b0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d16b0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [esp + 0x90]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x9c]
push eax
mov ebx, edx
mov dword [esp + 0x38], ecx
call fcn.0040dc00
mov edi, eax
add esp, 4
lea esi, [esp + 0x60]
mov ecx, edi
call fcn.0040d850
mov dword [esp + 0x88], 0
cmp dword [esp + 0x74], 0
jne 0x40be94
xor edi, edi
mov dword [esp + 0x3c], edi
jmp 0x40bea6
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
movzx ecx, ax
mov dword [esp + 0x3c], ecx
xor edi, edi
add ebx, 8
push ebx
lea edx, [esp + 0x2c]
push edx
push 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x2c], 0x30
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], ebx
call fcn.0047eb10
mov edx, dword [esp + 0x44]
add esp, 0x14
cmp byte [ebp + 8], 0
mov dword [esp + 0x2c], edx
jne 0x40bee9
mov esi, ebp
call fcn.0040da80
mov esi, dword [esp + 0x34]
cmp byte [esi + 8], 0
jne 0x40bef8
call fcn.0040da80
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x40bf0c
cmp dword [esi + 4], edi
je 0x40bfb1
cmp eax, edi
je 0x40bf15
cmp dword [esi + 4], edi
jne 0x40bfb1
cmp byte [ebp + 8], 0
jne 0x40bf22
mov esi, ebp
call fcn.0040da80
movzx esi, word [ebp + 0xa]
push ebx
lea eax, [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x2c], 0x2b
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
call fcn.0047eb10
add esp, 0x14
cmp si, word [esp + 0x28]
jne 0x40bf5d
mov eax, dword [esp + 0x30]
mov byte [eax], 0x2b
jmp 0x40bfa3
cmp byte [ebp + 8], 0
jne 0x40bf6a
mov esi, ebp
call fcn.0040da80
movzx esi, word [ebp + 0xa]
push ebx
lea eax, [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x2c], 0x2d
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], edi
call fcn.0047eb10
add esp, 0x14
cmp si, word [esp + 0x28]
jne 0x40bfb1
mov eax, dword [esp + 0x30]
mov byte [eax], 0x2d
add eax, 1
mov esi, ebp
mov dword [esp + 0x2c], eax
call fcn.0040da30
mov eax, dword [esp + 0x98]
and eax, 0xe00
cmp eax, 0x400
jne 0x40bfce
mov dword [esp + 0x20], 8
jmp 0x40bfea
cmp eax, 0x800
jne 0x40bfdf
mov dword [esp + 0x20], 0x10
jmp 0x40bfea
neg eax
sbb eax, eax
and eax, 0xa
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x34]
mov edi, ebp
mov byte [esp + 0x1f], 0
mov byte [esp + 0x27], 0
call fcn.0040e120
test al, al
je 0x40c0b2
cmp byte [ebp + 8], 0
jne 0x40c014
mov esi, ebp
call fcn.0040da80
movzx eax, word [ebp + 0xa]
cmp ax, word [esp + 0x38]
jne 0x40c0b2
mov esi, ebp
mov byte [esp + 0x1f], 1
call fcn.0040da30
mov edi, ebp
call fcn.0040e120
test al, al
je 0x40c0a1
cmp byte [ebp + 8], 0
jne 0x40c045
call fcn.0040da80
mov edi, dword [esp + 0x40]
movzx esi, word [ebp + 0xa]
push edi
push 0x78
call fcn.00407ac0
add esp, 8
cmp si, ax
je 0x40c07e
cmp byte [ebp + 8], 0
jne 0x40c06a
mov esi, ebp
call fcn.0040da80
movzx esi, word [ebp + 0xa]
push edi
push 0x58
call fcn.00407ac0
add esp, 8
cmp si, ax
jne 0x40c0a1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c08b
cmp eax, 0x10
jne 0x40c0a1
mov esi, ebp
mov dword [esp + 0x20], 0x10
mov byte [esp + 0x1f], 0
call fcn.0040da30
jmp 0x40c0c0
cmp dword [esp + 0x20], 0
jne 0x40c0b9
mov dword [esp + 0x20], 8
jmp 0x40c0c0
cmp dword [esp + 0x20], 0
je 0x40c0d7
cmp dword [esp + 0x20], 0xa
je 0x40c0d7
mov edi, dword [esp + 0x20]
sub edi, 8
neg edi
sbb edi, edi
and edi, 0xe
add edi, 8
mov dword [esp + 0x28], edi
jmp 0x40c0e3
mov dword [esp + 0x28], 0xa
mov edi, dword [esp + 0x28]
mov al, byte [esp + 0x1f]
mov dword [esp + 0x5c], 0xf
mov byte [esp + 0x48], al
mov dword [esp + 0x58], 1
mov byte [esp + 0x49], 0
mov esi, dword [esp + 0x34]
mov byte [esp + 0x88], 1
xor ebx, ebx
mov edi, edi
cmp byte [ebp + 8], 0
jne 0x40c158
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x40c14d
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40c134
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40c134
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x40c13e
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40c14d
mov word [ebp + 0xa], ax
jmp 0x40c154
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
cmp byte [esi + 8], 0
jne 0x40c1a0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c195
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40c17c
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40c17c
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x40c186
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40c195
mov word [esi + 0xa], ax
jmp 0x40c19c
mov dword [esi + 4], 0
mov byte [esi + 8], 1
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x40c1e4
cmp dword [esi + 4], ecx
jne 0x40c1ea
test ebx, ebx
je 0x40c3a7
cmp ebx, dword [esp + 0x58]
jbe 0x40c1bf
call fcn.0047f936
mov eax, dword [esp + 0x48]
mov edi, 0x10
cmp dword [esp + 0x5c], edi
jae 0x40c1d2
lea eax, [esp + 0x48]
cmp byte [eax + ebx], 0
jle 0x40c3a0
add ebx, 1
jmp 0x40c3ac
cmp dword [esi + 4], 0
jne 0x40c1ac
cmp byte [ebp + 8], 0
jne 0x40c22f
test ecx, ecx
je 0x40c224
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40c20b
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40c20b
mov eax, dword [eax]
movzx eax, word [eax]
jmp 0x40c215
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40c224
mov word [ebp + 0xa], ax
jmp 0x40c22b
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
mov ecx, dword [esp + 0x40]
movzx eax, word [ebp + 0xa]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x28], 0
mov dword [esp + 0x48], 0
call fcn.0047e958
mov al, byte [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov byte [edx], al
movsx eax, al
push edi
push eax
push str.0123456789abcdefABCDEF
call fcn.0047fd10
add esp, 0x1c
test eax, eax
je 0x40c2e5
cmp byte [esp + 0x27], 0
jne 0x40c285
mov ecx, dword [esp + 0x2c]
cmp byte [ecx], 0x30
je 0x40c29c
mov eax, dword [esp + 0x30]
add eax, 0x1f
cmp dword [esp + 0x2c], eax
jae 0x40c29c
add dword [esp + 0x2c], 1
mov byte [esp + 0x27], 1
cmp ebx, dword [esp + 0x58]
mov byte [esp + 0x1f], 1
jbe 0x40c2ac
call fcn.0047f936
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x40c2bb
lea eax, [esp + 0x48]
cmp byte [eax + ebx], 0x7f
je 0x40c34c
cmp ebx, dword [esp + 0x58]
jbe 0x40c2d0
call fcn.0047f936
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x40c2df
lea eax, [esp + 0x48]
add byte [eax + ebx], 1
jmp 0x40c34c
cmp ebx, dword [esp + 0x58]
jbe 0x40c2f0
call fcn.0047f936
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x40c2ff
lea eax, [esp + 0x48]
cmp byte [eax + ebx], 0
je 0x40c1ac
cmp word [esp + 0x3c], 0
je 0x40c1ac
cmp byte [ebp + 8], 0
jne 0x40c322
mov esi, ebp
call fcn.0040da80
mov dx, word [esp + 0x3c]
cmp word [ebp + 0xa], dx
jne 0x40c1ac
push 0
mov eax, 1
lea edi, [esp + 0x48]
call fcn.0040d760
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
add ebx, 1
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x40c390
mov eax, dword [ecx + 0x20]
cmp dword [eax], 0
je 0x40c377
mov edx, dword [ecx + 0x30]
cmp dword [edx], 0
jle 0x40c377
mov eax, edx
add dword [eax], 0xffffffff
mov ecx, dword [ecx + 0x20]
mov eax, dword [ecx]
lea edx, [eax + 2]
mov dword [ecx], edx
movzx eax, word [eax]
jmp 0x40c381
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
movzx eax, ax
cmp ax, 0xffff
je 0x40c390
mov byte [ebp + 8], 0
jmp 0x40c110
mov dword [ebp + 4], 0
mov byte [ebp + 8], 1
jmp 0x40c110
mov byte [esp + 0x1f], 0
jmp 0x40c3ac
mov edi, 0x10
cmp dword [esp + 0x78], edi
mov esi, dword [esp + 0x64]
jae 0x40c3ba
lea esi, [esp + 0x64]
cmp byte [esp + 0x1f], 0
je 0x40c43b
test ebx, ebx
jbe 0x40c428
cmp byte [esi], 0x7f
je 0x40c428
sub ebx, 1
je 0x40c3f4
cmp ebx, dword [esp + 0x58]
jbe 0x40c3df
call fcn.0047f936
mov edi, 0x10
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x40c3ed
lea eax, [esp + 0x48]
mov cl, byte [esi]
cmp cl, byte [eax + ebx]
jne 0x40c43b
test ebx, ebx
jne 0x40c41d
cmp ebx, dword [esp + 0x58]
jbe 0x40c408
call fcn.0047f936
mov edi, 0x10
cmp dword [esp + 0x5c], edi
mov eax, dword [esp + 0x48]
jae 0x40c416
lea eax, [esp + 0x48]
mov dl, byte [esi]
cmp dl, byte [eax + ebx]
jl 0x40c43b
cmp byte [esi + 1], 0
jle 0x40c3c1
add esi, 1
jmp 0x40c3c1
cmp byte [esp + 0x27], 0
mov eax, dword [esp + 0x2c]
jne 0x40c43f
mov byte [eax], 0x30
add eax, 1
jmp 0x40c43f
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x5c], edi
mov byte [eax], 0
jb 0x40c45a
mov eax, dword [esp + 0x48]
push eax
call fcn.0047f45b
add esp, 4
mov edi, 0x10
cmp dword [esp + 0x78], edi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jb 0x40c482
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0047f45b
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0047f460
add esp, 0x78
ret