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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489b70
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4e4394]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x4e4394]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, 7
xor edi, edi
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x1a0]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x78], edi
call fcn.0040bae0
push 0x19
mov eax, 0x4b5c30
lea ecx, [esp + 0x48]
call fcn.0040ba00
xor ecx, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], cx
mov byte [esp + 0x70], 1
mov edx, dword [esi + 0x2cc]
mov ebx, dword [edx]
mov edi, dword [esi + 0x2b4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edi
jmp 0x40adb0
mov eax, dword [esi + 0x2cc]
mov esi, dword [esi + 0x2b4]
mov dword [esp + 0x24], eax
test edi, edi
je 0x40adc8
cmp edi, esi
je 0x40adcd
call fcn.00476736
cmp ebx, dword [esp + 0x24]
je 0x40af48
push 0xe
mov eax, str._bhbcb
lea esi, [esp + 0x2c]
call fcn.0040bf50
test edi, edi
jne 0x40af28
call fcn.00476736
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x40ae00
call fcn.00476736
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + 0x94]
cmp dword [edx + 4], 0
je 0x40af0e
push 1
mov eax, 0x4b6874
lea ecx, [esp + 0x2c]
call fcn.0040ba00
test edi, edi
jne 0x40af2f
call fcn.00476736
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x40ae3c
call fcn.00476736
mov eax, dword [ebx + 0x10]
add eax, 0x1c
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x30]
call fcn.0040b940
push 1
mov eax, 0x4b6874
mov ecx, esi
call fcn.0040ba00
test edi, edi
jne 0x40af36
call fcn.00476736
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x40ae78
call fcn.00476736
mov ecx, dword [ebx + 0x10]
push 0
add ecx, 0x38
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x30]
call fcn.0040b940
push 1
mov eax, 0x4b6874
mov ecx, esi
call fcn.0040ba00
test edi, edi
jne 0x40af3d
call fcn.00476736
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x40aeb4
call fcn.00476736
mov edx, dword [ebx + 0x10]
push 0
add edx, 0x74
push edx
or eax, 0xffffffff
lea esi, [esp + 0x30]
call fcn.0040b940
push 1
mov eax, 0x4b6874
mov ecx, esi
call fcn.0040ba00
test edi, edi
jne 0x40af44
call fcn.00476736
cmp ebx, dword [edi + 0x18]
jne 0x40aeea
call fcn.00476736
mov eax, dword [ebx + 0x10]
add eax, 0x58
push 0
push eax
or eax, 0xffffffff
lea esi, [esp + 0x30]
call fcn.0040b940
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00410a80
add esp, 4
lea esi, [esp + 0x14]
call fcn.00418c90
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
jmp 0x40adb0
mov eax, dword [edi]
jmp 0x40adf6
mov eax, dword [edi]
jmp 0x40ae32
mov eax, dword [edi]
jmp 0x40ae6e
mov eax, dword [edi]
jmp 0x40aeaa
mov edi, dword [edi]
jmp 0x40aee0
mov esi, 8
cmp dword [esp + 0x40], esi
jb 0x40af60
mov edx, dword [esp + 0x2c]
push edx
call fcn.00475571
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp dword [esp + 0x5c], esi
jb 0x40af8a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00475571
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0047557c
mov esp, ebp
pop ebp
ret