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

Disassembly:
sub esp, 0x74
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x80]
lea eax, [esi + 0x10]
mov dword [esp + 0x38], ecx
mov cx, word [esi + 0xa]
push edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
mov ax, word [esi + 8]
lea edx, [esp + 0x30]
mov word [esp + 0x46], cx
xor edi, edi
lea ecx, [ebp + 0x134]
push edx
mov dword [esp + 0x34], edi
mov word [esp + 0x48], ax
call fcn.004017f3
cmp word [esi + 0xc], di
mov dword [esp + 0x1c], edi
jbe 0x47d6ea
mov eax, dword [esp + 0x20]
mov edi, eax
add eax, 8
test dword [edi + 4], 0x80000000
mov dword [esp + 0x20], eax
je 0x47d6d1
mov eax, dword [edi]
and eax, 0x7fffffff
push eax
push esi
mov edx, ebp
call fcn.0047d150
mov ebx, dword [edi + 4]
and ebx, 0x7fffffff
add ebx, esi
mov edi, ebx
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x44], ecx
mov cx, word [edi + 0xa]
mov dword [esp + 0x48], edx
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 0x34], eax
mov ax, word [edi + 8]
lea edx, [esp + 0x30]
mov word [esp + 0x46], cx
push edx
lea ecx, [ebp + 0x134]
mov dword [esp + 0x28], edi
add ebx, 0x10
mov dword [esp + 0x34], 1
mov word [esp + 0x48], ax
call fcn.004017f3
cmp word [edi + 0xc], 0
mov dword [esp + 0x18], 0
jbe 0x47d567
lea ebx, [ebx]
mov eax, ebx
add ebx, 8
test dword [eax + 4], 0x80000000
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
je 0x47d550
mov eax, dword [eax]
and eax, 0x7fffffff
push eax
push esi
mov edx, ebp
call fcn.0047d150
mov ecx, dword [esp + 0x30]
mov ebx, dword [ecx + 4]
mov edx, dword [esp + 0x14]
and ebx, 0x7fffffff
add ebx, esi
mov edi, ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi]
mov dword [esp + 0x48], ecx
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], edx
mov dx, word [edi + 8]
mov dword [esp + 0x3c], eax
mov ax, word [edi + 0xa]
push ecx
lea ecx, [ebp + 0x134]
mov dword [esp + 0x30], edi
add ebx, 0x10
mov dword [esp + 0x34], 2
mov word [esp + 0x48], dx
mov word [esp + 0x4a], ax
call fcn.004017f3
cmp word [edi + 0xe], 0
mov dword [esp + 0x28], 0
jbe 0x47d548
nop
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, ebx
mov edi, dword [ecx + 4]
mov cx, word [ecx]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
and edi, 0x7fffffff
add edi, esi
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 8]
mov word [esp + 0x50], cx
mov ecx, dword [edi + 0xc]
push eax
add ebx, 8
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], ecx
call fcn.004b14ff
mov edx, dword [edi + 4]
mov ecx, esi
sub ecx, dword [ebp + 0x108]
push edx
add ecx, dword [edi]
mov dword [esp + 0x60], eax
push ecx
push eax
call fcn.004f40b0
add esp, 0x10
lea edx, [esp + 0x48]
push edx
lea ecx, [ebp + 0x124]
call fcn.004041b5
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
movzx edx, word [ecx + 0xe]
add eax, 1
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x47d4a0
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
movzx ecx, word [edi + 0xc]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x47d400
cmp word [edi + 0xe], 0
mov dword [esp + 0x18], 0
jbe 0x47d6d1
lea ebx, [ebx]
mov eax, ebx
mov edi, dword [eax + 4]
add ebx, 8
test edi, edi
mov dword [esp + 0x14], ebx
jns 0x47d6b6
mov eax, dword [eax]
mov edx, dword [esp + 0xc]
and edi, 0x7fffffff
add edi, esi
mov ebx, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], edx
mov dx, word [ebx + 8]
mov dword [esp + 0x3c], eax
mov ax, word [ebx + 0xa]
push ecx
lea ecx, [ebp + 0x134]
add edi, 0x10
mov dword [esp + 0x34], 2
mov word [esp + 0x48], dx
mov word [esp + 0x4a], ax
call fcn.004017f3
cmp word [ebx + 0xe], 0
mov dword [esp + 0x28], 0
jbe 0x47d6b2
jmp 0x47d604
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, edi
xor eax, eax
add edi, 8
mov dword [esp + 0x2c], edi
mov edi, dword [ecx + 4]
mov cx, word [ecx]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc]
and edi, 0x7fffffff
add edi, esi
mov dword [esp + 0x68], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 8]
mov word [esp + 0x6c], cx
mov ecx, dword [edi + 0xc]
push eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], ecx
call fcn.004b14ff
mov ecx, dword [edi]
sub ecx, dword [ebp + 0x108]
mov edx, dword [edi + 4]
push edx
add ecx, esi
push ecx
push eax
mov dword [esp + 0x84], eax
call fcn.004f40b0
add esp, 0x10
lea edx, [esp + 0x64]
push edx
lea ecx, [ebp + 0x124]
call fcn.004041b5
mov eax, dword [esp + 0x28]
movzx ecx, word [ebx + 0xe]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x47d600
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
movzx ecx, word [edx + 0xe]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x47d580
mov eax, dword [esp + 0x1c]
movzx edx, word [esi + 0xc]
add eax, 1
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x47d367
xor edi, edi
cmp word [esi + 0xe], di
mov dword [esp + 0x1c], edi
jbe 0x47da61
jmp 0x47d700
mov eax, dword [esp + 0x20]
mov ecx, eax
add eax, 8
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
test eax, eax
jns 0x47da4a
mov ecx, dword [ecx]
and eax, 0x7fffffff
add eax, esi
mov edi, eax
mov ebx, edi
mov eax, dword [ebx]
mov dx, word [ebx + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], eax
mov ax, word [ebx + 0xa]
push ecx
add edi, 0x10
lea ecx, [ebp + 0x134]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 1
mov word [esp + 0x48], dx
mov word [esp + 0x4a], ax
call fcn.004017f3
cmp word [ebx + 0xc], 0
mov dword [esp + 0x18], 0
jbe 0x47d8e3
add dword [esp + 0x14], 8
test dword [edi + 4], 0x80000000
je 0x47d8c8
mov edx, dword [edi]
and edx, 0x7fffffff
push edx
push esi
mov edx, ebp
call fcn.0047d150
mov ebx, dword [edi + 4]
mov ecx, dword [esp + 0x14]
and ebx, 0x7fffffff
add ebx, esi
mov edi, ebx
mov edx, dword [edi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], ecx
mov cx, word [edi + 8]
mov dword [esp + 0x48], eax
add esp, 8
mov dword [esp + 0x3c], edx
mov dx, word [edi + 0xa]
lea eax, [esp + 0x30]
mov word [esp + 0x44], cx
push eax
lea ecx, [ebp + 0x134]
mov dword [esp + 0x30], edi
add ebx, 0x10
mov dword [esp + 0x34], 2
mov word [esp + 0x4a], dx
call fcn.004017f3
cmp word [edi + 0xe], 0
mov dword [esp + 0x28], 0
jbe 0x47d8c4
mov edx, dword [esp + 0x10]
xor eax, eax
mov ecx, ebx
mov edi, dword [ecx + 4]
mov cx, word [ecx]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xc]
and edi, 0x7fffffff
add edi, esi
mov dword [esp + 0x68], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 8]
mov word [esp + 0x6c], cx
mov ecx, dword [edi + 0xc]
push eax
add ebx, 8
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x80], ecx
call fcn.004b14ff
mov ecx, dword [edi]
sub ecx, dword [ebp + 0x108]
mov edx, dword [edi + 4]
push edx
add ecx, esi
push ecx
push eax
mov dword [esp + 0x84], eax
call fcn.004f40b0
add esp, 0x10
lea edx, [esp + 0x64]
push edx
lea ecx, [ebp + 0x124]
call fcn.004041b5
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
movzx edx, word [ecx + 0xe]
add eax, 1
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x47d816
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
movzx ecx, word [ebx + 0xc]
mov edi, dword [esp + 0x14]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x47d782
cmp word [ebx + 0xe], 0
mov dword [esp + 0x18], 0
jbe 0x47da4a
jmp 0x47d904
mov edi, dword [esp + 0x14]
mov eax, edi
add edi, 8
mov dword [esp + 0x14], edi
mov edi, dword [eax + 4]
test edi, edi
jns 0x47da33
mov eax, dword [eax]
mov edx, dword [esp + 0xc]
and edi, 0x7fffffff
add edi, esi
mov ebx, edi
mov ecx, dword [ebx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], edx
mov dx, word [ebx + 8]
mov dword [esp + 0x3c], eax
mov ax, word [ebx + 0xa]
push ecx
lea ecx, [ebp + 0x134]
add edi, 0x10
mov dword [esp + 0x34], 2
mov word [esp + 0x48], dx
mov word [esp + 0x4a], ax
call fcn.004017f3
cmp word [ebx + 0xe], 0
mov dword [esp + 0x28], 0
jbe 0x47da2f
jmp 0x47d987
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
mov ecx, edi
xor eax, eax
add edi, 8
mov dword [esp + 0x2c], edi
mov edi, dword [ecx + 4]
mov cx, word [ecx]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc]
and edi, 0x7fffffff
add edi, esi
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x48], edx
mov edx, dword [edi + 8]
mov word [esp + 0x50], cx
mov ecx, dword [edi + 0xc]
push eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], ecx
call fcn.004b14ff
mov ecx, dword [edi]
sub ecx, dword [ebp + 0x108]
mov edx, dword [edi + 4]
push edx
add ecx, esi
push ecx
push eax
mov dword [esp + 0x68], eax
call fcn.004f40b0
add esp, 0x10
lea edx, [esp + 0x48]
push edx
lea ecx, [ebp + 0x124]
call fcn.004041b5
mov eax, dword [esp + 0x28]
movzx ecx, word [ebx + 0xe]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x47d983
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
movzx edx, word [ebx + 0xe]
add eax, 1
cmp eax, edx
mov dword [esp + 0x18], eax
jl 0x47d900
mov eax, dword [esp + 0x1c]
movzx ecx, word [esi + 0xe]
add eax, 1
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x47d700
pop edi
pop ebp
pop ebx
add esp, 0x74
ret