Function at 0x4858f0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18c
mov eax, dword [esp + 0x19c]
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0x28]
push edi
mov edi, dword [esp + 0x1a4]
lea edx, [esp + 0x4c]
push ecx
xor esi, esi
push edx
push edi
mov dword [eax], esi
call fcn.00490a60
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
sub eax, ecx
push edi
mov dword [esp + 0xa0], eax
call fcn.00481a40
add esp, 0x10
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x4c]
mov ecx, ebx
push eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x70], esi
call fcn.00486d60
lea ecx, [ebx + 0xb0]
push edi
mov ebp, eax
mov dword [esp + 0x44], esi
call fcn.00485250
mov ecx, dword [esp + 0x1a0]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x68], esi
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x24], edx
mov cx, word [ecx + 0xc]
mov dx, word [eax + 0x14]
mov word [eax + 0x28], cx
mov word [ebx + 0x42c], dx
call fcn.00433030
add esp, 4
mov edi, eax
mov ecx, ebx
push edi
call fcn.00486cc0
push eax
call fcn.00490a80
add esp, 4
mov ecx, ebx
mov dword [esp + 0x54], eax
push edi
call fcn.0048fa90
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x80], ebp
cmp word [eax + 0x1c], di
mov dword [esp + 0x14], edi
jne 0x4859e9
mov ecx, eax
cmp dword [ecx], 0
je 0x486895
test ebp, ebp
je 0x486895
xor edi, edi
push ebp
mov dword [esp + 0x90], edi
call fcn.004952e0
mov esi, eax
mov eax, dword [esp + 0xbc]
add esp, 4
cmp esi, eax
mov dword [esp + 0x50], esi
je 0x48688d
push esi
mov ecx, ebx
call fcn.004af4b0
mov eax, dword [esp + 0x1a0]
mov ecx, dword [0x6559e0]
push edi
lea edx, [esp + 0x9c]
push edi
push edx
push ebx
push 0x3e8
push eax
call dword [ecx + 0x1ee]
mov eax, dword [ebx + 0x5ea]
mov edx, dword [eax]
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.00409040
add esp, 0x20
cmp eax, edi
jge 0x485a66
sub dword [esp + 0x98], eax
jmp 0x485a6d
add dword [esp + 0x9c], eax
mov edx, dword [esp + 0x9c]
mov word [esp + 0x11a], di
mov word [esp + 0x118], di
mov edi, dword [esp + 0x20]
lea eax, [ebx + 0x434]
mov cx, word [edi + 0x14]
push ecx
mov ecx, dword [esp + 0x9c]
push 0
push 0
push edx
lea edx, [esp + 0x124]
push ecx
push edx
push eax
call fcn.004b1770
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x3fc]
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x3f8]
add esp, 0x1c
cmp eax, esi
mov esi, dword [esp + 0x1c]
jne 0x485b92
test esi, esi
jne 0x485b79
cmp word [ebx + 0x450], 2
jb 0x485b38
cmp word [edi + 0x1c], 1
je 0x485b38
mov ecx, dword [esp + 0x1a4]
push ecx
call fcn.0049eaf0
add esp, 4
test eax, eax
je 0x485b38
mov cx, word [ebx + 0x450]
mov edx, dword [ebx]
push ecx
mov ecx, dword [edi + 0x10]
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x34], edx
call fcn.00481a50
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x1a8]
push edx
mov edx, dword [esp + 0x34]
push eax
mov ecx, ebx
call dword [edx + 0x20]
test eax, eax
jne 0x486875
cmp word [ebx + 0x460], 0
jne 0x485b92
cmp word [ebx + 0x450], 0
je 0x485b53
cmp word [edi + 0x1c], 1
jne 0x485b92
mov eax, dword [esp + 0x1a4]
push eax
call fcn.00486bc0
add esp, 4
test eax, eax
je 0x485b92
mov esi, dword [ebx + 0x458]
mov dword [esp + 0x7c], esi
neg esi
mov dword [esp + 0x1c], esi
jmp 0x485b92
cmp word [ebx + 0x450], 0
je 0x485b92
mov eax, 1
cmp word [edi + 0x1c], ax
jne 0x48687f
push ebp
mov ecx, ebx
call fcn.00484790
cmp word [eax + 4], 0
je 0x485bbc
xor ecx, ecx
mov cx, word [eax + 6]
cmp word [eax + ecx*8 + 8], 0x7f87
jne 0x485bbc
mov dword [esp + 0x68], 1
xor eax, eax
jmp 0x485bd8
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x1a0]
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x70], 0
call fcn.004a8400
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
add eax, ecx
mov ecx, dword [esp + 0x6c]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x28], eax
jle 0x485ce9
test esi, esi
jge 0x485bfe
mov ecx, esi
neg ecx
jmp 0x485c00
xor ecx, ecx
lea eax, [esp + 0xa4]
mov edx, dword [ebx]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [ecx + esi]
push eax
mov eax, dword [esp + 0x58]
sub eax, ecx
mov ecx, dword [esp + 0x64]
add eax, ecx
mov cx, word [ebx + 0x5bc]
push eax
xor eax, eax
mov ax, word [edi + 0x16]
push ecx
mov cx, word [edi + 0x14]
push eax
mov eax, dword [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [esp + 0x1d0]
push ecx
push eax
mov ecx, ebx
call dword [edx + 4]
mov edx, dword [esp + 0x10]
cmp dx, 1
jne 0x485c90
mov eax, dword [esp + 0xd4]
test eax, eax
jne 0x485c90
mov ecx, dword [esp + 0xd8]
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x485c90
mov eax, 1
jmp 0x485c92
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
cmp ecx, dword [esp + 0x74]
jle 0x485cdc
test esi, esi
jne 0x485cb3
test eax, eax
je 0x485cb3
mov eax, dword [esp + 0xa4]
test eax, eax
jne 0x485cdc
cmp word [edi + 0x1c], 0
jne 0x485cbe
mov eax, dword [edi]
jmp 0x485cc8
push 0x2d
call fcn.00411980
add esp, 4
cmp dword [esp + 0x28], eax
jg 0x486875
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x8c], 1
jmp 0x485ced
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x485d85
push ebp
call fcn.00486c30
add esp, 4
and eax, 1
mov dword [esp + 0x40], eax
jne 0x485d81
push ebp
mov ecx, ebx
call fcn.00484790
mov edx, dword [esp + 0x10]
xor ecx, ecx
cmp word [eax + 6], dx
mov dword [esp + 0x24], eax
setne cl
xor edi, edi
mov dword [esp + 0x40], ecx
test ecx, ecx
jne 0x485d85
jmp 0x485d34
mov eax, dword [esp + 0x24]
cmp di, dx
jae 0x485d73
mov ecx, edi
and ecx, 0xffff
mov eax, dword [eax + ecx*8 + 0xc]
cmp eax, dword [esp + ecx*8 + 0xd8]
jne 0x485d63
mov eax, dword [esp + 0x24]
mov eax, dword [eax + ecx*8 + 8]
cmp eax, dword [esp + ecx*8 + 0xd4]
jne 0x485d63
xor ecx, ecx
jmp 0x485d68
mov ecx, 1
inc edi
test ecx, ecx
je 0x485d30
mov dword [esp + 0x40], ecx
jmp 0x485d85
test ecx, ecx
mov dword [esp + 0x40], ecx
je 0x4866dc
jmp 0x485d85
mov edx, dword [esp + 0x10]
and edx, 0xffff
lea ecx, [ebx + 0xbc]
lea edx, [edx*8 + 8]
push edx
push ebp
call fcn.00453e40
push ebp
mov ecx, ebx
call fcn.00484790
mov cx, word [esp + 0x10]
lea esi, [esp + 0xd4]
mov word [eax + 6], cx
mov ecx, dword [esp + 0x10]
and ecx, 0xffff
lea edi, [eax + 8]
shl ecx, 3
mov edx, ecx
mov dword [esp + 0x24], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x43c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x3f8]
cmp ecx, eax
jne 0x485e05
mov eax, dword [ebx + 0x440]
mov ecx, dword [ebx + 0x438]
add eax, ecx
mov dword [esp + 0x34], eax
jmp 0x485e42
push eax
mov ecx, ebx
call fcn.00484750
push ebp
push eax
call fcn.00486c50
xor ecx, ecx
add esp, 8
mov cx, word [ebx + 0x446]
cmp eax, ecx
jae 0x485e38
mov esi, dword [ebx + 0x440]
mov eax, dword [ebx + 0x438]
add esi, eax
mov dword [esp + 0x34], esi
jmp 0x485e46
mov edx, dword [ebx + 0x438]
mov dword [esp + 0x34], edx
mov esi, dword [esp + 0x34]
cmp word [ebx + 0x5bc], 1
jne 0x485e5e
mov eax, esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov ax, word [edi + 6]
cmp ax, cx
je 0x485eba
and eax, 0xffff
shl eax, 3
mov edx, dword [esp + eax + 0xd0]
mov ecx, dword [esp + eax + 0xcc]
sub edx, 0x1770
push ecx
push edx
call fcn.00412550
add esp, 8
cmp esi, eax
jle 0x485e9d
mov esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
sub ecx, esi
lea eax, [ecx - 0x1770]
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jge 0x485eb8
mov dword [esp + 0x38], eax
xor ecx, ecx
mov edx, dword [esp + 0x50]
mov word [edi + 4], cx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], edx
cmp ax, cx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ecx
jbe 0x48603b
jmp 0x485eed
mov ecx, dword [esp + 0x24]
cmp word [ebx + 0x5bc], 0
jne 0x485efb
mov eax, ecx
jmp 0x485efe
sub eax, ecx
dec eax
and eax, 0xffff
shl eax, 3
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
mov ecx, dword [esp + edi + 0xd8]
push ecx
call fcn.00412550
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + edi + 0xe0]
mov esi, eax
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x40]
sub eax, edx
push eax
push ecx
call fcn.00412540
mov edi, eax
add esp, 0x10
cmp esi, edi
jge 0x48601f
push ebp
mov ecx, ebx
call fcn.00484790
mov dx, word [eax + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
mov word [esp + 0x28], dx
push eax
lea edx, [esp + 0xcc]
push ecx
lea eax, [esp + 0xc8]
push edx
lea ecx, [esp + 0xd0]
push eax
mov eax, dword [esp + 0x1b4]
lea edx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x1bc]
push edi
push esi
push ecx
push edx
push ebp
push eax
mov ecx, ebx
call fcn.00489f20
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc0]
cmp ecx, eax
jge 0x485fba
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jge 0x485fcd
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jge 0x485fe0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x60]
cmp ecx, eax
jge 0x485ff3
mov dword [esp + 0x60], eax
cmp word [ebx + 0x5bc], 1
jne 0x486013
mov ecx, dword [esp + 0x28]
push ecx
push ebp
mov ecx, ebx
call fcn.00484790
push eax
call fcn.004b16b0
add esp, 8
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x18]
cmp eax, edx
jge 0x486037
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
inc ecx
cmp cx, ax
mov dword [esp + 0x24], ecx
jb 0x485ee9
jmp 0x48603b
mov eax, dword [esp + 0x10]
test ax, ax
je 0x486084
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov cx, word [eax + 0x14]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.00484790
push eax
lea eax, [ebx + 0x434]
push eax
call fcn.004b1770
push eax
mov eax, dword [esp + 0x68]
push eax
call fcn.00412550
add esp, 0x24
mov edi, eax
jmp 0x48608e
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x1c]
sub edi, eax
mov ecx, dword [esp + 0x68]
mov eax, dword [ebx + 0x468]
test ecx, ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], eax
jne 0x486106
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x3fc]
cmp edx, ecx
jne 0x4860c6
cmp word [ebx + 0x462], 0
jne 0x4860c6
add eax, dword [ebx + 0x45c]
mov dword [esp + 0x44], eax
push ecx
mov ecx, dword [esp + 0x1a4]
push ecx
mov ecx, ebx
call fcn.00489bc0
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
sub esi, edx
add esi, ecx
mov ecx, dword [esp + 0x74]
add esi, edi
add esi, eax
cmp esi, ecx
jle 0x486489
test eax, eax
jge 0x486110
neg eax
jmp 0x486112
mov dword [esp + 0x30], 0
jmp 0x4860da
xor eax, eax
lea ecx, [esp + 0xd0]
mov edx, dword [ebx]
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0xdc]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x4c]
sub ecx, eax
mov eax, dword [esp + 0x60]
sub ecx, eax
mov eax, dword [esp + 0x58]
add ecx, eax
mov ax, word [ebx + 0x5bc]
add ecx, edi
push ecx
push eax
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov cx, word [eax + 0x16]
push ecx
mov cx, word [eax + 0x14]
push ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x1d0]
push eax
push ecx
mov ecx, ebx
call dword [edx + 4]
cmp word [esp + 0x10], 1
jne 0x4861b5
mov eax, dword [esp + 0xd4]
test eax, eax
jne 0x4861b5
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xd8]
cmp edx, dword [ecx + 4]
jne 0x4861b5
mov eax, 1
mov dword [esp + 0x5c], eax
jmp 0x4861bf
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x5c], eax
cmp esi, dword [esp + 0x74]
jle 0x486209
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x4861dc
test eax, eax
je 0x4861dc
mov eax, dword [esp + 0xd0]
test eax, eax
jne 0x486209
cmp word [ecx + 0x1c], 0
jne 0x4861e7
mov eax, dword [ecx]
jmp 0x4861f1
push 0x2d
call fcn.00411980
add esp, 4
cmp esi, eax
jg 0x486885
mov dword [esp + 0x10], 0
mov dword [esp + 0x5c], 0
push ebp
mov ecx, ebx
mov dword [esp + 0x90], 1
call fcn.00484790
mov ecx, dword [esp + 0x10]
mov edi, eax
xor esi, esi
xor edx, edx
cmp word [edi + 6], cx
setne dl
test edx, edx
jne 0x486270
cmp si, cx
jae 0x486268
mov edx, esi
and edx, 0xffff
mov eax, dword [edi + edx*8 + 0xc]
cmp eax, dword [esp + edx*8 + 0xd8]
jne 0x48625c
mov eax, dword [edi + edx*8 + 8]
cmp eax, dword [esp + edx*8 + 0xd4]
jne 0x48625c
xor edx, edx
jmp 0x486261
mov edx, 1
inc esi
test edx, edx
je 0x486231
jmp 0x486270
test edx, edx
je 0x486485
and ecx, 0xffff
lea ecx, [ecx*8 + 8]
push ecx
push ebp
lea ecx, [ebx + 0xbc]
call fcn.00453e40
push ebp
mov ecx, ebx
call fcn.00484790
mov dx, word [esp + 0x10]
lea esi, [esp + 0xd4]
mov word [eax + 6], dx
mov ecx, dword [esp + 0x10]
and ecx, 0xffff
lea edi, [eax + 8]
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov word [eax + 4], cx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp ax, cx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], ecx
jbe 0x486441
cmp word [ebx + 0x5bc], 0
jne 0x4862ff
mov eax, dword [esp + 0x24]
jmp 0x486304
sub eax, dword [esp + 0x24]
dec eax
mov ecx, dword [esp + 0x34]
and eax, 0xffff
shl eax, 3
mov edi, eax
push ecx
mov edx, dword [esp + edi + 0xd8]
push edx
call fcn.00412550
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
sub ecx, edx
mov edx, dword [esp + edi + 0xe0]
push ecx
push edx
call fcn.00412540
mov edi, eax
add esp, 0x10
cmp esi, edi
jge 0x48642b
push ebp
mov ecx, ebx
call fcn.00484790
mov ax, word [eax + 4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
mov word [esp + 0x84], ax
push ecx
lea eax, [esp + 0xd0]
push edx
lea ecx, [esp + 0xc4]
push eax
lea edx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x1b4]
lea eax, [esp + 0xb8]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x1bc]
push edi
push esi
push edx
push eax
push ebp
push ecx
mov ecx, ebx
call fcn.00489f20
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xbc]
cmp ecx, eax
jge 0x4863c3
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x58]
cmp ecx, eax
jge 0x4863d6
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jge 0x4863e9
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
jge 0x4863fc
mov dword [esp + 0x68], eax
cmp word [ebx + 0x5bc], 1
jne 0x48641f
mov edx, dword [esp + 0x84]
mov ecx, ebx
push edx
push ebp
call fcn.00484790
push eax
call fcn.004b16b0
add esp, 8
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jge 0x486441
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
inc ecx
cmp cx, ax
mov dword [esp + 0x24], ecx
jb 0x4862ef
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x58]
mov dx, word [ecx + 0x14]
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
push ebp
mov ecx, ebx
call fcn.00484790
push eax
lea eax, [ebx + 0x434]
push eax
call fcn.004b1770
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.00412550
add esp, 0x24
mov dword [esp + 0x48], eax
mov edi, dword [esp + 0x48]
push ebp
mov dword [esp + 0x38], ebp
call fcn.0048feb0
mov ecx, dword [esp + 0x54]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esi, ecx
add esp, 4
cmp esi, eax
jge 0x4865a2
push ebp
call fcn.00481a40
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
sub edx, esi
push edx
push ebp
call fcn.00490aa0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00484750
mov ebp, eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x486588
mov ecx, eax
push ecx
call fcn.00485500
add esp, 4
mov esi, eax
test ebp, ebp
je 0x4864fa
push ebp
call fcn.00485500
add esp, 4
jmp 0x486501
mov ecx, ebx
call fcn.00486d80
mov edx, dword [esp + 0x28]
push ebp
push edx
mov ecx, ebx
mov dword [esp + 0x40], eax
call fcn.0048f4a0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
cmp esi, ecx
mov dword [ebx + 0x420], 0xffffffff
jge 0x486565
cmp edx, ecx
jle 0x48654f
mov eax, edx
push eax
push ecx
mov ecx, ebx
call fcn.0048faf0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, esi
mov dword [esp + 0x2c], esi
sub ecx, edx
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x486578
mov eax, esi
sub eax, edx
add ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x486578
mov eax, dword [esp + 0x14]
mov ecx, esi
sub edx, eax
sub ecx, eax
push edx
push ecx
mov ecx, ebx
call fcn.0048faf0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
sub esi, ecx
add eax, esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x3fc]
xor edx, edx
cmp eax, ecx
setl dl
mov dword [esp + 0x40], edx
jmp 0x48662d
jle 0x48661a
cmp esi, dword [ebx + 0x3fc]
jl 0x486600
mov ecx, dword [esp + 0x18]
sub ecx, esi
push ecx
push ebp
call fcn.00490ac0
mov edx, dword [esp + 0x20]
add esp, 8
sub esi, edx
mov ecx, ebx
push edi
push esi
push ebp
call fcn.00486ce0
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add ecx, edi
mov ebp, eax
add esi, edi
add edx, edi
mov dword [esp + 0x54], ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], edx
call fcn.00484790
xor ecx, ecx
mov word [eax + 6], cx
mov word [eax + 4], cx
jmp 0x48662d
mov eax, dword [esp + 0x18]
sub eax, esi
push eax
push ebp
call fcn.00490aa0
push ebp
call fcn.00481a40
add esp, 0xc
mov ebp, eax
jmp 0x48662d
push ebp
call fcn.00481a40
add esp, 4
mov ebp, eax
mov dword [esp + 0x40], 0
mov esi, dword [esp + 0x50]
mov ecx, ebx
push esi
call fcn.004af4b0
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x48666f
cmp word [ebx + 0x450], 0
je 0x48666f
mov edx, dword [esp + 0x20]
cmp word [edx + 0x1c], 1
je 0x48666f
cmp dword [ebx + 0x3f8], esi
jne 0x48666f
mov eax, dword [esp + 0x34]
push 1
push eax
call fcn.00486c90
add esp, 8
jmp 0x486686
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x486686
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.0049aa70
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add edx, eax
push ecx
add edi, edx
call fcn.00486c10
add esp, 4
cmp eax, edi
je 0x4866d3
mov edx, dword [esp + 0x14]
mov esi, edi
sub esi, eax
add edx, esi
push esi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
push edx
call fcn.00486c70
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x5c]
add esp, 8
add ecx, esi
add eax, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], eax
add dword [esp + 0x1c], edi
jmp 0x48684c
push ebp
mov dword [esp + 0x88], ebp
call fcn.00486bf0
add esp, 4
inc eax
mov ecx, ebx
push eax
call fcn.00486d20
mov ebp, eax
mov dword [esp + 0x70], esi
test ebp, ebp
je 0x48670a
push ebp
call fcn.00485500
add esp, 4
jmp 0x486711
mov ecx, ebx
call fcn.00486d80
mov ecx, dword [esp + 0x54]
push ecx
push eax
call fcn.00412540
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x74]
mov esi, eax
mov eax, dword [esp + 0x54]
sub esi, edi
add esp, 8
sub esi, eax
cmp esi, ecx
mov dword [esp + 0x1c], esi
jle 0x4867af
add ecx, edi
add ecx, eax
push ecx
mov ecx, ebx
call fcn.00486d40
mov ebp, eax
lea edx, [esp + 0x94]
lea eax, [esp + 0x78]
push edx
push eax
push ebp
call fcn.004858a0
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x78]
sub ecx, eax
add esp, 0xc
cmp ecx, edx
jg 0x486856
push ebp
call fcn.00481a40
mov edx, dword [esp + 0x98]
mov ebp, eax
push ebp
mov dword [esp + 0x80], edx
call fcn.00485520
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov esi, dword [esp + 0x78]
sub esi, edi
sub esi, eax
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0x2c]
lea ecx, [esi + edi]
sub edx, eax
mov dword [esp + 0x84], ecx
cmp ecx, edx
jle 0x48680f
mov edx, dword [esp + 0x2c]
mov ecx, esi
sub ecx, edx
mov edx, dword [esp + 0x88]
add ecx, eax
push ecx
push edx
mov ecx, ebx
call fcn.0048f720
mov ecx, dword [esp + 0x2c]
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, edi
add eax, ecx
mov ecx, dword [esp + 0x1a4]
push eax
push ecx
call fcn.00490aa0
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x8c]
add esp, 8
add edx, eax
mov dword [esp + 0x2c], edx
mov edi, dword [esp + 0x1ac]
mov ecx, dword [esp + 0x70]
cmp dword [edi], ecx
jne 0x486835
mov edx, dword [esp + 0x90]
push edx
push esi
call fcn.00412540
mov dword [edi], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov ecx, dword [esp + 0x54]
add eax, esi
cmp eax, ecx
je 0x486891
test ebp, ebp
je 0x486891
push ebp
call fcn.004952e0
add esp, 4
test ebp, ebp
jne 0x4859f1
jmp 0x48688d
cmp ebp, dword [esp + 0x84]
jne 0x4867a3
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], 1
mov dword [esp + 0x1c], eax
jmp 0x48684c
mov dword [esp + 0x64], 1
jmp 0x486891
mov dword [esp + 0x64], eax
jmp 0x486891
mov dword [esp + 0x64], 1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x7c]
test edi, edi
mov dword [ecx + 8], edx
jle 0x4868af
mov eax, dword [esp + 0x1a4]
push edi
push eax
jmp 0x48690a
jge 0x486912
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048feb0
mov ecx, edi
add esp, 4
neg ecx
cmp ecx, eax
mov dword [esp + 0x78], eax
jle 0x486904
mov edx, eax
mov eax, dword [esp + 0x3c]
neg edx
push edx
push eax
call fcn.00490ac0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x80]
push ecx
add edi, eax
call fcn.00481a40
add esp, 0xc
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x4868bc
jmp 0x486912
mov edx, dword [esp + 0x3c]
push edi
push edx
call fcn.00490ac0
add esp, 8
mov edi, dword [esp + 0x1a4]
push edi
call fcn.0048feb0
mov ecx, dword [esp + 0x80]
add esp, 4
sub ecx, eax
add esi, ecx
jns 0x486942
mov edx, dword [esp + 0x88]
push 1
push edx
mov ecx, ebx
call fcn.0048f6d0
jmp 0x486956
test esi, esi
jle 0x486960
mov eax, dword [esp + 0x88]
push esi
push eax
mov ecx, ebx
call fcn.0048f720
push esi
push edi
call fcn.00490aa0
add esp, 8
test ebp, ebp
je 0x48696c
push ebp
mov ecx, ebx
call fcn.0049aa70
push edi
call fcn.0048feb0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 4
cmp dword [eax], esi
je 0x4869b7
cmp word [eax + 0x1c], 1
jne 0x486988
mov dword [eax], esi
mov cx, word [eax + 0x14]
mov eax, dword [eax + 0x10]
neg cx
sbb ecx, ecx
mov edx, dword [ebx]
and ecx, 0xfffffff9
push esi
add ecx, 8
push ecx
mov ecx, dword [esp + 0x1a8]
push eax
push ecx
mov ecx, ebx
call dword [edx + 8]
mov edx, dword [esp + 0x1a8]
mov dword [edx], eax
jmp 0x4869c4
mov eax, dword [esp + 0x1a8]
mov dword [eax], 0
push edi
lea ecx, [ebx + 0xb0]
call fcn.00485270
push 0
push edi
mov ecx, ebx
call fcn.0048f6d0
cmp dword [esp + 0x80], ebp
je 0x486a0b
test ebp, ebp
je 0x4869f2
push ebp
call fcn.0049eaf0
add esp, 4
jmp 0x4869f9
mov ecx, ebx
call fcn.004822a0
mov ecx, dword [esp + 0x80]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.004b21a0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x486a2d
push 3
push ebp
push ebp
mov ecx, ebx
call fcn.004b21a0
mov edx, dword [esp + 0x88]
mov ecx, ebx
push edx
call fcn.0048f5d0
or eax, 0xffffffff
mov dword [ebx + 0x414], eax
mov dword [ebx + 0x420], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x486b82
push ebp
mov ecx, ebx
mov dword [esp + 0x34], ebp
call fcn.004af6d0
test esi, esi
mov dword [esp + 0x80], esi
jle 0x486b82
jmp 0x486a6c
mov edi, dword [esp + 0x1a4]
mov eax, dword [ebx + 0x3f8]
mov ecx, dword [ebx + 0x41c]
cmp ecx, eax
je 0x486aec
cmp word [ebx + 0x44a], 0
je 0x486a8d
mov ebp, 0x7fff
jmp 0x486a9e
mov bp, word [ebx + 0x448]
cmp bp, 1
jbe 0x486b3a
mov ecx, dword [ebx + 0x424]
push eax
mov dword [esp + 0x94], ecx
mov ecx, ebx
call fcn.00484750
mov edx, dword [esp + 0x30]
mov edi, eax
push edx
push edi
call fcn.00486c50
and ebp, 0xffff
add esp, 8
cmp eax, ebp
jae 0x486b33
push edi
mov ecx, ebx
mov dword [esp + 0x34], edi
call fcn.004af6d0
mov eax, dword [ebx + 0x424]
mov edx, dword [esp + 0x90]
sub eax, edx
add esi, eax
jmp 0x486b2b
cmp word [ebx + 0x450], 0
jne 0x486b3a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0049eaf0
add esp, 4
mov ebp, eax
mov ecx, ebx
push ebp
call fcn.004af6d0
cmp word [ebx + 0x44e], 0
je 0x486b3a
mov edx, dword [ebx + 0x424]
mov ecx, dword [ebx + 0x428]
sub edx, ecx
mov dword [esp + 0x30], ebp
add esi, edx
test esi, esi
jg 0x486a65
mov edi, dword [esp + 0x1a4]
mov ebp, dword [esp + 0x80]
cmp esi, ebp
je 0x486b82
push edi
call fcn.0048feb0
mov ecx, ebp
add esp, 4
sub ecx, esi
cmp eax, ecx
jle 0x486b82
mov edx, dword [esp + 0x88]
push 1
push edx
mov ecx, ebx
call fcn.0048f6d0
mov eax, esi
sub eax, ebp
push eax
push edi
call fcn.00490aa0
mov eax, dword [esp + 0x1b4]
add esp, 8
cmp dword [eax], esi
jle 0x486b82
mov dword [eax], esi
push edi
mov ecx, ebx
call fcn.00481a50
mov ecx, dword [eax]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x7c]
mov ebp, esi
lea ebx, [ecx + edx]
sub ebp, edi
cmp ebp, ebx
jle 0x486bad
sub esi, ecx
mov ecx, dword [eax + 8]
sub esi, edx
sub esi, edi
add ecx, esi
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18c
ret 0x10