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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 8], edx
xor esi, esi
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x24], ecx
mov eax, dword [edx]
mov dword [edx], esi
mov dword [ebx], esi
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x18], esi
je 0x4705f4
mov eax, dword [edi + 0x1c]
jmp 0x4707cb
cmp dword [edi + 0xc], 0
lea esi, [edi + 0x20]
mov dword [ebp - 0x34], esi
mov dword [esi], 2
je 0x4706ba
push esi
push dword [ebp + 0x1c]
mov dword [ebp + 0x14], ecx
xor edx, edx
push dword [ebp + 0x18]
lea ecx, [ebp + 0x14]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [edi + 0x78]
call dword [edi + 0x88]
mov esi, dword [esi]
mov edx, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x1c], edx
mov dword [ebx], eax
xor ebx, ebx
mov eax, dword [edi + 0x14]
inc ebx
add eax, ecx
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x1c], esi
mov dword [edi + 0x14], eax
test edx, edx
jne 0x47065a
cmp dword [ebp + 0x18], edx
jne 0x47065a
cmp esi, ebx
jne 0x47065d
mov dword [edi + 0x18], ebx
cmp dword [edi + 8], ebx
jne 0x470669
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x4706b3
cmp dword [edi + 0x18], 0
je 0x4706b3
mov dword [ebp + 0x18], ebx
cmp dword [edi + 8], ebx
jbe 0x4706ae
lea esi, [edi + 0x90]
mov edx, dword [edi + 0xc]
mov ecx, dword [esi]
push eax
call dword [esi + 0x14]
cmp dword [ebp + 0x1c], ebx
je 0x470699
cmp dword [ebp + 0xc], 0
je 0x47069c
mov ecx, dword [ebp - 0x10]
cmp dword [edi + 0x14], ecx
jne 0x47069c
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0x18]
add esi, 0x18
inc ecx
mov dword [ebp + 0x18], ecx
cmp ecx, dword [edi + 8]
jb 0x47067d
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, edx
jmp 0x4707cb
xor ebx, ebx
inc ebx
cmp dword [edi + 8], ebx
je 0x4706eb
cmp dword [edi + 4], 0
jne 0x4706e5
mov esi, dword [edi]
mov edx, 0x60000
mov ecx, esi
call dword [esi]
mov dword [edi + 4], eax
test eax, eax
jne 0x4706e2
push 2
pop eax
jmp 0x4707cb
lea esi, [edi + 0x20]
and dword [ebp - 0x14], 0
jmp 0x4706f1
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
jmp 0x4706fc
lea esi, [edi + 0x20]
and dword [ebp + 0x10], 0
xor ecx, ecx
mov dword [esi], 2
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp + 0x1c], ecx
cmp dword [edi + 8], ecx
jbe 0x4707c4
lea eax, [esi + 5]
mov dword [ebp - 0x28], ecx
imul eax, eax, 0x18
add eax, edi
mov dword [ebp - 0x2c], eax
test esi, esi
jne 0x470741
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [edx]
jmp 0x470765
lea edx, [esi - 1]
shl edx, 0x11
add edx, dword [edi + 4]
add edx, dword [edi + esi*4 + 0x2c]
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + esi*4 + 0x20]
mov dword [ebp - 0x18], edx
mov edx, dword [edi + esi*4 + 0x38]
sub edx, dword [edi + esi*4 + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [edi + 8]
dec eax
cmp esi, eax
jne 0x47077d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub ecx, dword [edx]
jmp 0x470794
mov eax, dword [edi + esi*4 + 0x30]
cmp eax, dword [edi + esi*4 + 0x3c]
jne 0x4707aa
mov eax, esi
mov ecx, 0x20000
shl eax, 0x11
add eax, dword [edi + 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + esi*4 + 0x68]
test ecx, ecx
je 0x4707d2
mov eax, dword [ebp - 0x28]
test eax, eax
cmovne ecx, eax
mov dword [ebp + 0x1c], ecx
mov eax, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 8]
jb 0x470719
test eax, eax
jne 0x4706f9
cmp dword [ebp - 0x20], eax
je 0x4707c9
mov eax, dword [ebp - 0x34]
mov dword [eax], ebx
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
lea ecx, [ebp - 0x30]
mov edx, eax
mov eax, dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 4]
push dword [ebp - 0x18]
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [eax]
call dword [eax + 0x10]
mov edx, eax
test edx, edx
je 0x470806
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
mov dword [edi + esi*4 + 0x68], edx
cmove ecx, edx
mov dword [ebp + 0x1c], ecx
mov eax, dword [ebp - 0x30]
cmp eax, ebx
push 0
pop ecx
sete cl
mov dword [ebp - 0x2c], ecx
je 0x470826
and dword [ebp - 0x20], 0
cmp dword [edi + 8], ebx
jne 0x470826
test edx, edx
jne 0x470826
mov dword [edi + 0x20], eax
mov edx, dword [ebp - 4]
test esi, esi
jne 0x470837
mov eax, dword [ebp + 0x14]
add dword [eax], edx
add dword [ebp + 0xc], edx
jmp 0x47083b
add dword [edi + esi*4 + 0x2c], edx
mov eax, dword [edi + 8]
dec eax
cmp esi, eax
mov eax, dword [ebp - 0xc]
jne 0x470850
mov ecx, dword [ebp + 8]
add dword [ecx], eax
add dword [ebp - 8], eax
jmp 0x470860
mov ecx, dword [ebp - 0x2c]
and dword [edi + esi*4 + 0x30], 0
mov dword [edi + esi*4 + 0x3c], eax
mov dword [edi + esi*4 + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
test eax, eax
jne 0x47086f
test edx, edx
je 0x4707aa
mov eax, ebx
mov dword [ebp + 0x10], eax
jmp 0x4707ad