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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x645800]
cmp eax, dword [0x64581c]
push esi
push edi
jne 0x470d3e
mov ecx, dword [0x64583c]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xc]
add ecx, 0xb4
push eax
mov dword [ebp - 4], ecx
call fcn.005340a0
mov esi, eax
test esi, esi
je 0x470d3e
mov eax, dword [edi + 0x10]
push ebx
lea ebx, [esi + 0xdc]
push eax
mov ecx, ebx
mov dword [esi + 0xc], eax
call fcn.00533950
movzx ecx, word [esi + 0x34]
push ecx
mov ecx, ebx
call fcn.00533970
test byte [edi + 0x14], 1
je 0x470aa9
mov edx, dword [edi + 0x18]
mov dword [esi + 0x30], edx
test byte [edi + 0x14], 2
je 0x470ab5
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x38], eax
test byte [edi + 0x14], 4
je 0x470ace
mov byte [0x6457f4], 1
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x40], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x44], edx
test byte [edi + 0x14], 8
je 0x470ada
mov eax, dword [edi + 0x28]
mov dword [esi + 0x48], eax
test byte [edi + 0x14], 0x10
je 0x470ae6
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x4c], ecx
test byte [edi + 0x14], 0x20
je 0x470af2
mov edx, dword [edi + 0x30]
mov dword [esi + 0x50], edx
test byte [edi + 0x14], 0x40
je 0x470afe
mov eax, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov al, byte [edi + 0x14]
test al, al
jns 0x470b0b
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x58], ecx
mov eax, dword [edi + 0x14]
test ah, 0x40
je 0x470b26
xor eax, eax
mov al, byte [edi + 0x76]
xor dl, dl
cmp dl, al
sbb eax, eax
neg eax
mov dword [esi + 0xc4], eax
mov eax, dword [edi + 0x14]
test ah, ah
jns 0x470b3e
mov al, byte [edi + 0x77]
test al, al
seta cl
movzx edx, cl
mov dword [esi + 0xc8], edx
test dword [edi + 0x14], 0x20000
je 0x470b5f
mov eax, dword [edi + 0x7c]
cmp eax, 0xff
mov dword [esi + 0xd0], eax
jae 0x470b5f
push eax
mov ecx, ebx
call fcn.00533a30
test dword [edi + 0x14], 0x40000
je 0x470b7c
mov eax, dword [edi + 0x80]
push eax
mov ecx, ebx
mov dword [esi + 0xd4], eax
call fcn.00533a50
test dword [edi + 0x14], 0x10000
je 0x470b9d
mov eax, dword [edi + 0x78]
cmp eax, 0xff
mov dword [esi + 0xcc], eax
jae 0x470b9d
push eax
mov ecx, ebx
call fcn.00533a10
mov eax, dword [edi + 0x14]
test ah, 1
je 0x470bca
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x5c], eax
mov ecx, dword [edi + 0x40]
xor eax, eax
mov dword [esi + 0x60], ecx
mov ax, word [edi + 0x44]
mov edx, ecx
mov word [esi + 0x64], ax
mov ecx, ebx
push eax
mov eax, dword [esi + 0x5c]
push edx
push eax
call fcn.00533990
mov eax, dword [edi + 0x14]
test ah, 2
je 0x470bf9
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x68], ecx
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x6c], edx
xor eax, eax
mov ax, word [edi + 0x50]
mov ecx, edx
mov edx, dword [esi + 0x68]
push ecx
mov ecx, ebx
mov word [esi + 0x70], ax
push eax
push edx
push 1
call fcn.005339d0
mov eax, dword [edi + 0x14]
test ah, 4
je 0x470c28
mov eax, dword [edi + 0x54]
mov dword [esi + 0x74], eax
mov ecx, dword [edi + 0x58]
xor eax, eax
mov dword [esi + 0x78], ecx
mov ax, word [edi + 0x5c]
mov edx, ecx
push edx
mov word [esi + 0x7c], ax
mov ecx, ebx
push eax
mov eax, dword [esi + 0x74]
push eax
push 2
call fcn.005339d0
mov eax, dword [edi + 0x14]
test ah, 8
je 0x470c63
mov ecx, dword [edi + 0x60]
mov dword [esi + 0x80], ecx
mov edx, dword [edi + 0x64]
mov dword [esi + 0x84], edx
xor eax, eax
mov ax, word [edi + 0x68]
mov ecx, edx
mov edx, dword [esi + 0x80]
push ecx
mov ecx, ebx
mov word [esi + 0x88], ax
push eax
push edx
push 3
call fcn.005339d0
mov eax, dword [edi + 0x14]
test ah, 0x10
je 0x470c9e
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x8c], eax
mov ecx, dword [edi + 0x70]
xor eax, eax
mov dword [esi + 0x90], ecx
mov ax, word [edi + 0x74]
mov edx, ecx
push edx
mov word [esi + 0x94], ax
mov ecx, ebx
push eax
mov eax, dword [esi + 0x8c]
push eax
push 4
call fcn.005339d0
test dword [edi + 0x14], 0x80000
je 0x470cc1
mov eax, dword [edi + 0x84]
push 0xffffffffffffffff
push 0
push eax
push 0x10
mov ecx, ebx
mov dword [esi + 0xd8], eax
call fcn.005339d0
test dword [edi + 0x14], 0x100000
je 0x470cd3
mov ecx, dword [edi + 0x88]
mov dword [esi + 0x3c], ecx
mov edx, dword [esi]
mov ebx, dword [ebp - 4]
push 0xff
push edx
mov ecx, ebx
call fcn.00533f50
mov ecx, dword [0x64582c]
mov edx, dword [ecx]
push eax
push 0xf6
call dword [edx + 0x50]
push 0xff
mov ecx, ebx
xor edi, edi
call fcn.00533dc0
test eax, eax
jle 0x470d3d
push 0xff
push edi
mov ecx, ebx
call fcn.005341a0
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x470d2c
mov ecx, dword [0x64582c]
mov edx, dword [ecx]
push edi
push 0xfa
call dword [edx + 0x50]
push 0xff
mov ecx, ebx
inc edi
call fcn.00533dc0
cmp edi, eax
jl 0x470d08
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret