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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov eax, ebx
sub eax, ecx
cdq
push edi
mov edi, dword [ebp + 0xc]
sub eax, edx
mov dword [esp + 0x2c], ecx
lea edx, [ebx - 1]
mov dword [esp + 0x2c], ebx
mov ebx, dword [ebp + 0x1c]
push ebx
push edx
mov esi, eax
mov eax, dword [ebp + 0x14]
push eax
sar esi, 1
add esi, ecx
push esi
push edi
push ecx
push edi
call fcn.004802e0
lea eax, [esi + 1]
add esp, 0x1c
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov ebx, esi
mov edi, edi
cmp dword [ebp + 0x10], ebx
jae 0x480b0a
lea ecx, [esp + 0x10]
call fcn.0047f670
mov esi, eax
mov eax, dword [esp + 0x10]
lea edi, [ebx - 1]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480a9a
test dx, dx
je 0x480a96
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480a9a
add eax, 4
add ecx, 4
test dx, dx
jne 0x480a74
xor eax, eax
jmp 0x480a9f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480b0a
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
call fcn.0047f670
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
jmp 0x480ad0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480af6
test dx, dx
je 0x480af2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480af6
add eax, 4
add ecx, 4
test dx, dx
jne 0x480ad0
xor eax, eax
jmp 0x480afb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480b0a
mov ebx, edi
mov dword [esp + 0x14], ebx
jmp 0x480a40
mov edi, dword [esp + 0x1c]
mov edi, edi
cmp edi, dword [ebp + 0x18]
jae 0x480bb1
lea ecx, [esp + 0x10]
call fcn.0047f670
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480b57
test dx, dx
je 0x480b53
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480b57
add eax, 4
add ecx, 4
test dx, dx
jne 0x480b31
xor eax, eax
jmp 0x480b5c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480bb1
lea ecx, [esp + 0x18]
call fcn.0047f670
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480b9e
test dx, dx
je 0x480b9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480b9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x480b78
xor eax, eax
jmp 0x480ba3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480bb1
inc edi
mov dword [esp + 0x1c], edi
jmp 0x480b10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x24]
cmp edi, dword [ebp + 0x18]
jae 0x480cc0
lea ecx, [esp + 0x20]
call fcn.0047f670
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480c16
test dx, dx
je 0x480c12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480c16
add eax, 4
add ecx, 4
test dx, dx
jne 0x480bf0
xor eax, eax
jmp 0x480c1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480cb2
lea ecx, [esp + 0x10]
call fcn.0047f670
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
jmp 0x480c40
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480c66
test dx, dx
je 0x480c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x480c40
xor eax, eax
jmp 0x480c6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480cc0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, edx
inc edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x60], eax
call fcn.0047f670
lea ecx, [esp + 0x60]
mov esi, eax
call fcn.0047f670
cmp eax, esi
je 0x480cb2
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [esi], ecx
inc edi
mov dword [esp + 0x24], edi
jmp 0x480bc5
cmp ebx, dword [ebp + 0x10]
jbe 0x480def
lea ecx, [esp + 0x10]
call fcn.0047f670
mov esi, eax
mov eax, dword [esp + 0x10]
lea edi, [ebx - 1]
lea ecx, [esp + 0x98]
mov dword [esp + 0xac], ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edi
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480d26
test dx, dx
je 0x480d22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480d26
add eax, 4
add ecx, 4
test dx, dx
jne 0x480d00
xor eax, eax
jmp 0x480d2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480de5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x90]
mov dword [esp + 0xac], ebx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edi
call fcn.0047f670
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0047f670
mov ecx, dword [esi]
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x480d8d
test dx, dx
je 0x480d89
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x480d8d
add eax, 4
add ecx, 4
test dx, dx
jne 0x480d67
xor eax, eax
jmp 0x480d92
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x480dec
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
dec ecx
mov eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0xac], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x80], edx
call fcn.0047f670
lea ecx, [esp + 0x80]
mov esi, eax
call fcn.0047f670
cmp eax, esi
je 0x480de5
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [esi], ecx
mov ebx, edi
jmp 0x480cc0
cmp ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
jne 0x480e95
cmp eax, dword [ebp + 0x18]
je 0x480f65
cmp dword [esp + 0x1c], eax
je 0x480e51
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
call fcn.0047f670
lea ecx, [esp + 0xa0]
mov esi, eax
call fcn.0047f670
cmp eax, esi
je 0x480e51
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [esi], ecx
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x1c]
mov ecx, edx
inc edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x10]
mov esi, edi
inc edi
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], edi
mov dword [esp + 0x70], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], esi
call fcn.0047f670
lea ecx, [esp + 0x40]
jmp 0x480f49
dec ebx
cmp eax, dword [ebp + 0x18]
jne 0x480f10
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
dec eax
mov dword [esp + 0x14], eax
cmp ebx, eax
je 0x480ee0
mov ecx, eax
mov dword [esp + 0x4c], ecx
mov eax, edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
call fcn.0047f670
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0047f670
cmp eax, esi
je 0x480ee0
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [esi], ecx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
dec eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edx
call fcn.0047f670
lea ecx, [esp + 0x78]
jmp 0x480f49
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, edx
inc edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x28], eax
call fcn.0047f670
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.0047f670
cmp eax, esi
je 0x480bc5
mov edx, dword [esi]
mov ecx, dword [eax]
mov dword [eax], edx
mov dword [esi], ecx
jmp 0x480bc5
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
pop esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret