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

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x98]
mov eax, dword [ebx + 8]
push ebp
push esi
mov esi, dword [esp + 0xa4]
add ebx, 4
xor ebp, ebp
add esi, 4
cmp eax, ebp
push edi
mov edi, ecx
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
je 0x4852bd
push eax
call fcn.0049cb9b
add esp, 4
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ebp
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4852d6
push eax
call fcn.0049cb9b
add esp, 4
mov eax, dword [esp + 0xa0]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
cmp ecx, edx
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
je 0x4857f9
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
je 0x4856d3
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ebx + 8]
cmp ecx, dword [0x102fe7f8]
mov edx, dword [ebx + 0xc]
jne 0x485338
cmp edx, dword [0x102fe7fc]
jne 0x485338
mov esi, ecx
mov eax, edx
jmp 0x485341
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
add esi, ecx
adc eax, edx
mov ebp, dword [edi + 4]
cmp eax, ebp
ja 0x485433
jb 0x485356
cmp esi, dword [edi]
jae 0x485433
mov al, byte [esp + 0x12]
test al, al
je 0x48541b
cmp ecx, dword [0x102fe7f8]
jne 0x485378
cmp edx, dword [0x102fe7fc]
jne 0x485378
mov eax, ecx
mov ecx, edx
jmp 0x485381
mov eax, dword [ebx]
add eax, ecx
mov ecx, dword [ebx + 4]
adc ecx, edx
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, esi
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
sbb ecx, edx
test eax, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
jne 0x4853ac
xor edx, edx
jmp 0x4853b4
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
test eax, eax
je 0x4853f6
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x4853f6
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 8]
push ecx
push esi
lea edx, [esp + 0x40]
push edx
push 1
push edi
call fcn.00611a49
add edi, 0x10
add esp, 0x14
add ebx, 0x10
mov dword [esi + 8], edi
mov byte [esp + 0x12], 0
mov dword [esp + 0x1c], ebx
mov edi, ebx
jmp 0x4856c4
mov eax, dword [esi + 8]
lea ecx, [esp + 0x38]
push ecx
push 1
push eax
mov ecx, esi
call fcn.004805a9
add ebx, 0x10
mov byte [esp + 0x12], 0
mov dword [esp + 0x1c], ebx
mov edi, ebx
jmp 0x4856c4
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00480869
add ebx, 0x10
mov dword [esp + 0x1c], ebx
mov edi, ebx
jmp 0x4856c4
mov edx, dword [edi + 8]
cmp edx, dword [0x102fe7f8]
mov esi, dword [edi + 0xc]
jne 0x48544f
cmp esi, dword [0x102fe7fc]
jne 0x48544f
mov ebx, edx
mov edi, esi
jmp 0x48545d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov ebx, edx
add ebx, ecx
mov edi, esi
adc edi, ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp edi, eax
ja 0x48556f
jb 0x485478
cmp ebx, ecx
jae 0x48556f
mov al, byte [esp + 0x12]
test al, al
je 0x4854cf
cmp edx, dword [0x102fe7f8]
jne 0x485496
cmp esi, dword [0x102fe7fc]
jne 0x485496
mov edi, dword [esp + 0x14]
jmp 0x48549e
mov edi, dword [esp + 0x14]
add edx, dword [edi]
adc esi, ebp
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub edx, ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x5c]
sbb esi, eax
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], esi
call fcn.00480869
mov byte [esp + 0x12], 0
jmp 0x4854dd
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push edi
call fcn.00480869
mov al, byte [esp + 0x13]
test al, al
je 0x485555
mov ecx, dword [edi + 8]
cmp ecx, dword [0x102fe7f8]
mov edx, dword [edi + 0xc]
jne 0x485501
cmp edx, dword [0x102fe7fc]
jne 0x485501
mov eax, ecx
mov ecx, edx
jmp 0x48550a
mov eax, dword [edi]
add eax, ecx
mov ecx, dword [edi + 4]
adc ecx, edx
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub eax, esi
sbb ecx, edx
mov dword [esp + 0x80], edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x24]
push edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x88], eax
call fcn.00480869
add edi, 0x10
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x13], 0
jmp 0x4856c4
mov ecx, dword [esp + 0x24]
push edi
call fcn.00480869
add edi, 0x10
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
jmp 0x4856c4
mov dl, byte [esp + 0x12]
test dl, dl
mov esi, dword [esp + 0x14]
jne 0x48559e
cmp eax, ebp
ja 0x48558f
jb 0x485585
cmp ecx, dword [esi]
jae 0x48558f
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jmp 0x485599
mov edx, dword [esi]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x12], 1
mov dl, byte [esp + 0x13]
test dl, dl
je 0x4855d3
mov edi, dword [esp + 0x34]
cmp edi, eax
ja 0x485610
mov edx, dword [esp + 0x30]
jb 0x4855b8
cmp edx, ecx
jae 0x485610
sub ecx, edx
sbb eax, edi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ecx
push eax
jmp 0x485607
cmp ebp, eax
ja 0x485610
jb 0x4855dd
cmp dword [esi], ecx
jae 0x485610
mov edx, dword [esi]
sub ecx, edx
mov dword [esp + 0x94], ecx
sbb eax, ebp
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x98], eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00480869
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 8]
cmp edx, dword [0x102fe7f8]
mov ebp, dword [edi + 0xc]
jne 0x485634
cmp ebp, dword [0x102fe7fc]
jne 0x485634
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebp
jmp 0x485645
mov eax, dword [edi]
add eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 4]
adc eax, ebp
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
cmp eax, dword [0x102fe7f8]
mov ebx, dword [esi + 0xc]
jne 0x485661
cmp ebx, dword [0x102fe7fc]
jne 0x485661
mov ecx, eax
mov eax, ebx
jmp 0x48566a
mov ecx, dword [esi]
add ecx, eax
mov eax, dword [esi + 4]
adc eax, ebx
cmp dword [esp + 0x50], eax
ja 0x4856b8
jb 0x485678
cmp dword [esp + 0x4c], ecx
jae 0x4856b8
cmp edx, dword [0x102fe7f8]
mov byte [esp + 0x13], 1
jne 0x48569e
cmp ebp, dword [0x102fe7fc]
jne 0x48569e
add edi, 0x10
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], edi
jmp 0x4856c4
mov eax, dword [edi]
add eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 4]
adc eax, ebp
add edi, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], edi
jmp 0x4856c4
add esi, 0x10
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], esi
cmp edi, dword [esp + 0x48]
jne 0x48530a
jmp 0x4857f5
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x1c]
cmp eax, edx
je 0x4857f9
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
mov ebx, eax
mov al, byte [esp + 0x12]
test al, al
je 0x485798
mov ecx, dword [ebx + 8]
cmp ecx, dword [0x102fe7f8]
mov edx, dword [ebx + 0xc]
jne 0x485715
cmp edx, dword [0x102fe7fc]
jne 0x485715
mov eax, ecx
mov ecx, edx
jmp 0x48571e
mov eax, dword [ebx]
add eax, ecx
mov ecx, dword [ebx + 4]
adc ecx, edx
mov edx, dword [esp + 0x28]
sub eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
sbb ecx, ebp
test eax, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ecx
jne 0x485741
xor edx, edx
jmp 0x485749
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
test eax, eax
je 0x48577f
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x48577f
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x40]
push ecx
push 1
push edi
call fcn.00611a49
add esp, 0x14
add edi, 0x10
mov dword [esi + 8], edi
mov byte [esp + 0x12], 0
jmp 0x4857e6
mov eax, dword [esi + 8]
lea edx, [esp + 0x38]
push edx
push 1
push eax
mov ecx, esi
call fcn.004805a9
mov byte [esp + 0x12], 0
jmp 0x4857e6
mov edx, dword [esi + 4]
test edx, edx
jne 0x4857a3
xor ecx, ecx
jmp 0x4857ab
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 4
test edx, edx
je 0x4857d8
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x4857d8
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 8]
push eax
push esi
push ebx
push 1
push edi
call fcn.00611a49
add esp, 0x14
add edi, 0x10
mov dword [esi + 8], edi
jmp 0x4857e6
mov eax, dword [esi + 8]
push ebx
push 1
push eax
mov ecx, esi
call fcn.004805a9
mov eax, dword [esp + 0x48]
add ebx, 0x10
cmp ebx, eax
jne 0x4856ed
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x18]
je 0x485a24
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
jmp 0x485819
mov al, byte [esp + 0x12]
test al, al
je 0x4858c9
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x102fe7f8]
mov edx, dword [ebp + 0xc]
jne 0x485841
cmp edx, dword [0x102fe7fc]
jne 0x485841
mov eax, ecx
mov ecx, edx
jmp 0x48584b
mov eax, dword [ebp]
add eax, ecx
mov ecx, dword [ebp + 4]
adc ecx, edx
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, ebx
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
sbb ecx, edx
test eax, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ecx
jne 0x485872
xor edx, edx
jmp 0x48587a
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
test eax, eax
je 0x4858b0
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x4858b0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi + 8]
push ecx
push esi
lea edx, [esp + 0x40]
push edx
push 1
push ebx
call fcn.00611a49
add esp, 0x14
add ebx, 0x10
mov dword [esi + 8], ebx
mov byte [esp + 0x12], 0
jmp 0x485917
mov eax, dword [esi + 8]
lea ecx, [esp + 0x38]
push ecx
push 1
push eax
mov ecx, esi
call fcn.004805a9
mov byte [esp + 0x12], 0
jmp 0x485917
mov edx, dword [esi + 4]
test edx, edx
jne 0x4858d4
xor ecx, ecx
jmp 0x4858dc
mov ecx, dword [esi + 8]
sub ecx, edx
sar ecx, 4
test edx, edx
je 0x485909
mov eax, dword [esi + 0xc]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x485909
mov edx, dword [esp + 0x18]
mov ebx, dword [esi + 8]
push edx
push esi
push ebp
push 1
push ebx
call fcn.00611a49
add esp, 0x14
add ebx, 0x10
mov dword [esi + 8], ebx
jmp 0x485917
mov eax, dword [esi + 8]
push ebp
push 1
push eax
mov ecx, esi
call fcn.004805a9
mov al, byte [esp + 0x13]
test al, al
je 0x4859c7
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x102fe7f8]
mov edx, dword [ebp + 0xc]
jne 0x48593f
cmp edx, dword [0x102fe7fc]
jne 0x48593f
mov eax, ecx
mov ecx, edx
jmp 0x485949
mov eax, dword [ebp]
add eax, ecx
mov ecx, dword [ebp + 4]
adc ecx, edx
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub eax, ebx
mov dword [esp + 0x54], eax
mov eax, dword [edi + 4]
sbb ecx, edx
test eax, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ecx
jne 0x485970
xor edx, edx
jmp 0x485978
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 4
test eax, eax
je 0x4859ae
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x4859ae
mov eax, dword [esp + 0x18]
mov ebx, dword [edi + 8]
push eax
push edi
lea ecx, [esp + 0x54]
push ecx
push 1
push ebx
call fcn.00611a49
add esp, 0x14
add ebx, 0x10
mov dword [edi + 8], ebx
mov byte [esp + 0x13], 0
jmp 0x485a15
mov eax, dword [edi + 8]
lea edx, [esp + 0x4c]
push edx
push 1
push eax
mov ecx, edi
call fcn.004805a9
mov byte [esp + 0x13], 0
jmp 0x485a15
mov edx, dword [edi + 4]
test edx, edx
jne 0x4859d2
xor ecx, ecx
jmp 0x4859da
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 4
test edx, edx
je 0x485a07
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 4
cmp ecx, eax
jae 0x485a07
mov eax, dword [esp + 0x18]
mov ebx, dword [edi + 8]
push eax
push edi
push ebp
push 1
push ebx
call fcn.00611a49
add esp, 0x14
add ebx, 0x10
mov dword [edi + 8], ebx
jmp 0x485a15
mov eax, dword [edi + 8]
push ebp
push 1
push eax
mov ecx, edi
call fcn.004805a9
mov eax, dword [esp + 0x18]
add ebp, 0x10
cmp ebp, eax
jne 0x485819
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0xc