Function at 0x4569f0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x526de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
mov ebp, ecx
push esi
push edi
xor edi, edi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x164]
inc ecx
cmp eax, 1
mov dword [esp + 0x28], ebp
mov dword [ebp + 0x14], ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
jne 0x456cb8
mov eax, dword [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.0045d700
mov esi, dword [eax]
mov dl, byte [esp + 0x23]
mov ebx, dword [eax + 4]
mov byte [esp + 0xd8], dl
mov dword [esp + 0xdc], edi
mov dword [esp + 0xe0], edi
mov dword [esp + 0xe4], edi
mov al, byte [esp + 0x23]
mov dword [esp + 0x13c], edi
mov byte [esp + 0xe8], al
mov dword [esp + 0xec], edi
mov dword [esp + 0xf0], edi
mov dword [esp + 0xf4], edi
lea ecx, [esp + 0x23]
mov byte [esp + 0x13c], 1
push ecx
lea ecx, [esp + 0xfc]
call fcn.0045f0c0
lea edx, [esp + 0x43]
lea ecx, [esp + 0x108]
push edx
mov byte [esp + 0x140], 2
call fcn.0045f0c0
mov al, byte [esp + 0x43]
mov dword [esp + 0x13c], 3
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], edi
mov dword [esp + 0x12c], edi
mov dword [esp + 0x128], edi
mov dword [esp + 0x124], edi
mov dword [esp + 0x120], edi
mov dword [esp + 0x130], edi
mov byte [esp + 0xa0], al
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
cmp esi, edi
mov byte [esp + 0x13c], 4
jle 0x456ba6
mov edx, dword [esp + 0xa8]
lea ecx, [esp + 0x118]
push ecx
push 1
push edx
lea ecx, [esp + 0xac]
call fcn.00460f90
mov ecx, dword [esp + 0xf0]
lea eax, [esp + 0x14]
push eax
push 1
xor edi, edi
push ecx
lea ecx, [esp + 0xf4]
mov dword [esp + 0x20], edi
call fcn.004691a0
mov eax, dword [esp + 0x110]
lea edx, [esp + 0x14]
push edx
push 1
push eax
lea ecx, [esp + 0x114]
mov dword [esp + 0x20], edi
call fcn.004691a0
dec esi
jne 0x456b45
xor edi, edi
cmp ebx, edi
jle 0x456bee
mov esi, ebx
mov edx, dword [esp + 0xe0]
lea ecx, [esp + 0xa0]
push ecx
push 1
push edx
lea ecx, [esp + 0xe4]
call fcn.00460790
mov ecx, dword [esp + 0x100]
lea eax, [esp + 0x14]
push eax
push 1
push ecx
lea ecx, [esp + 0x104]
mov dword [esp + 0x20], edi
call fcn.004691a0
dec esi
jne 0x456bae
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0xd8]
push edx
push 1
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 4]
push eax
call fcn.00460a20
mov eax, dword [esp + 0xa4]
push eax
call fcn.00509e5a
add esp, 4
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov ecx, dword [esp + 0x110]
mov edx, dword [esp + 0x10c]
push ecx
push edx
lea ecx, [esp + 0x110]
mov dword [esp + 0x144], 7
call fcn.0046ca10
mov eax, dword [esp + 0x10c]
push eax
call fcn.00509e5a
add esp, 4
lea ecx, [esp + 0xf8]
mov dword [esp + 0x10c], edi
mov dword [esp + 0x110], edi
mov dword [esp + 0x114], edi
mov byte [esp + 0x13c], 6
call fcn.00468250
lea ecx, [esp + 0xe8]
mov byte [esp + 0x13c], 5
call fcn.00468250
lea ecx, [esp + 0xd8]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0045ee90
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
shl eax, 6
mov esi, eax
mov dword [esp + 0xd0], esi
add esi, ecx
mov cl, byte [esi]
mov byte [esp + 0x48], cl
mov ecx, esi
call fcn.0045f4a0
cmp eax, edi
jge 0x456cdf
xor eax, eax
shl eax, 4
push eax
call fcn.00509e31
add esp, 4
mov dword [esp + 0x4c], eax
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.0045f500
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea edx, [esi + 0x10]
lea ecx, [esp + 0x58]
push edx
mov dword [esp + 0x140], 8
call fcn.0045f0e0
lea eax, [esi + 0x20]
lea ecx, [esp + 0x68]
push eax
mov byte [esp + 0x140], 9
call fcn.0045f0e0
add esi, 0x30
lea ecx, [esp + 0x78]
push esi
mov byte [esp + 0x140], 0xa
call fcn.0045f0e0
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x13c], 0xb
cmp ecx, edi
jne 0x456d64
mov dword [esp + 0x18], edi
jmp 0x456d71
mov eax, dword [esp + 0x60]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
cmp eax, edi
jne 0x456d7d
xor esi, esi
jmp 0x456d86
mov esi, dword [esp + 0x70]
sub esi, eax
sar esi, 2
lea ebx, [ebp + 0x3c]
push str.table
mov ecx, ebx
mov dword [esp + 0x20], esi
call fcn.00509974
push edi
mov ecx, ebp
call fcn.0045ad20
mov eax, dword [ebx]
push ebx
push eax
mov ecx, ebp
call fcn.0045acf0
mov ecx, dword [0x565124]
mov dword [esp + 0xd4], edi
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0xd4]
lea eax, [esp + 0xb0]
push edx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x14c], 0xc
call fcn.0045cdf0
lea ecx, [esp + 0x14]
call fcn.005097eb
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xbc]
push eax
push ecx
mov ecx, ebp
call fcn.0045d020
push 1
lea edx, [esp + 0xc0]
push ebx
lea eax, [esp + 0xa8]
push edx
push eax
mov ecx, ebp
mov byte [esp + 0x14c], 0xd
call fcn.0045db70
mov ecx, ebp
call fcn.0045b050
cmp dword [ebp + 0x164], 1
je 0x45701c
mov eax, dword [esp + 0x14c]
mov ebx, dword [esp + 0x5c]
cmp ebx, edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
jne 0x456e6a
xor eax, eax
jmp 0x456e73
mov eax, dword [esp + 0x60]
sub eax, ebx
sar eax, 2
mov edx, dword [ebp + 0xa8]
lea esi, [edx + eax - 1]
xor eax, eax
mov dword [esp + 0x10], esi
cmp ebx, edi
je 0x456e9e
mov ecx, dword [esp + 0x60]
sub ecx, ebx
sar ecx, 2
cmp eax, ecx
jae 0x456e9e
mov ecx, dword [ebx + eax*4]
add ecx, edx
add esi, ecx
inc eax
jmp 0x456e83
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], esi
cmp ecx, edi
jne 0x456eae
xor eax, eax
jmp 0x456eb7
mov eax, dword [esp + 0x70]
sub eax, ecx
sar eax, 2
add edx, eax
mov eax, dword [esp + 0x38]
lea edx, [eax + edx - 1]
xor eax, eax
mov dword [esp + 0x38], edx
cmp ecx, edi
je 0x456ef4
mov edx, dword [esp + 0x70]
sub edx, ecx
sar edx, 2
cmp eax, edx
jae 0x456ef4
mov edx, dword [ecx + eax*4]
mov esi, dword [ebp + 0xa8]
add edx, esi
mov esi, dword [esp + 0x38]
add esi, edx
inc eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x10]
jmp 0x456ec7
mov ecx, dword [ebp + 0x88]
mov eax, 6
cmp ecx, eax
je 0x456f0b
mov eax, dword [ebp + 0x8c]
shl eax, 1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
add esi, eax
add ecx, eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 8]
sub eax, edx
cmp esi, eax
mov dword [esp + 0x3c], eax
jge 0x457006
mov edx, dword [esp + 0x80]
mov esi, eax
mov eax, dword [esp + 0x10]
sub esi, eax
mov eax, dword [esp + 0x7c]
xor edi, edi
mov dword [esp + 0x24], edi
test eax, eax
je 0x456f72
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp dword [esp + 0x24], ecx
jae 0x456f72
mov ecx, dword [esp + 0x24]
cmp dword [eax + ecx*4], 0
jne 0x456f6c
inc edi
inc dword [esp + 0x24]
jmp 0x456f50
xor ecx, ecx
test eax, eax
je 0x456fbf
mov eax, edx
sub eax, dword [esp + 0x7c]
sar eax, 2
cmp ecx, eax
jae 0x456fbf
test edi, edi
jle 0x456fbf
mov eax, dword [esp + 0x7c]
cmp dword [eax + ecx*4], 0
jne 0x456fbc
mov eax, esi
cdq
idiv edi
mov edx, dword [ebx + ecx*4]
add edx, eax
sub esi, eax
mov dword [ebx + ecx*4], edx
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x5c]
dec edi
add edx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x80]
inc ecx
jmp 0x456f74
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jge 0x457006
mov eax, dword [ebp + 0x80]
dec eax
je 0x456fed
dec eax
jne 0x457006
mov edx, dword [esp + 0x14c]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 8]
sub eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x457006
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
add eax, ecx
mov dword [esp + 0x34], eax
xor edi, edi
jmp 0x457020
mov ebx, dword [esp + 0x5c]
cmp dword [ebp + 0x164], edi
jne 0x4570fc
mov eax, dword [ebp + 0x78]
cmp eax, edi
jl 0x45705c
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
push edi
push 5
push edx
mov edx, dword [ebp + 0x60]
push ecx
lea ecx, [esp + 0x3c]
push edx
mov edx, dword [ebp + 0x15c]
push ecx
push eax
push edx
lea ecx, [ebp + 0xd0]
call fcn.00452c00
jmp 0x45709d
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp + 0x7c]
cmp dword [ecx - 8], edi
je 0x4570a1
push ecx
mov ecx, esp
mov dword [esp + 0xa4], esp
push eax
call fcn.00509560
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
sub edx, eax
push edx
mov edx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
mov eax, dword [ebp + 0x15c]
push ecx
push eax
mov ecx, ebp
call fcn.0045e920
mov ebx, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x8c]
cmp ecx, edi
jle 0x4570fc
cmp dword [ebp + 0x144], edi
je 0x4570d1
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x64]
push ecx
mov ecx, dword [ebp + 0x88]
push ecx
push edx
mov edx, dword [ebp + 0x15c]
lea ecx, [esp + 0x38]
push eax
push ecx
push edx
jmp 0x4570ed
mov eax, dword [ebp + 0x148]
push ecx
mov ecx, dword [ebp + 0x88]
lea edx, [esp + 0x30]
push ecx
push eax
push eax
mov eax, dword [ebp + 0x15c]
push edx
push eax
lea ecx, [ebp + 0xd0]
call fcn.00453ba0
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x164]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x38]
cmp eax, 1
mov dword [esp + 0x90], ecx
mov dword [esp + 0x9c], edx
je 0x45718c
cmp dword [ebp + 0x88], 6
jne 0x45714d
add ecx, 3
mov eax, 3
mov dword [esp + 0x90], ecx
jmp 0x45715c
mov eax, dword [ebp + 0x8c]
add ecx, eax
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
add ecx, eax
sub edx, eax
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x9c]
sub ecx, eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], ecx
cmp dword [esp + 0x18], edi
je 0x4572d4
cmp esi, edi
je 0x4572d4
mov eax, dword [0x565124]
mov dword [esp + 0x24], edi
mov dword [esp + 0xc8], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, edi
mov byte [esp + 0x13c], 0x10
jle 0x457290
mov ebx, dword [esp + 0x148]
push ecx
mov ecx, esp
mov dword [esp + 0xa4], esp
push 0x5618fc
call fcn.00509859
lea edx, [esp + 0x28]
mov ecx, ebp
push edx
push ebx
call fcn.0045d2c0
cmp eax, edi
je 0x457283
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x44], eax
call fcn.0045d9e0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
sub edx, eax
mov ecx, ebx
push edx
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.00502811
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x140], 0x11
call fcn.00509924
lea ecx, [esp + 0xcc]
mov byte [esp + 0x13c], 0x10
call fcn.005097eb
lea ecx, [esp + 0x48]
push esi
lea edx, [esp + 0x94]
push ecx
lea eax, [esp + 0xbc]
push edx
push eax
mov ecx, ebp
call fcn.00457c50
mov ecx, dword [esp + 0x3c]
add ecx, 5
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4571d9
lea ecx, [esp + 0xb4]
mov byte [esp + 0x13c], 0xf
call fcn.005097eb
lea ecx, [esp + 0xc4]
mov byte [esp + 0x13c], 0xe
call fcn.005097eb
lea ecx, [esp + 0xc8]
mov byte [esp + 0x13c], 0xd
call fcn.005097eb
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x1c]
cmp dword [ebp + 0x164], edi
je 0x45761f
mov eax, dword [esp + 0x18]
mov ebp, 1
cmp eax, ebp
jl 0x45746c
jmp 0x4572f7
mov esi, dword [esp + 0x1c]
cmp esi, edi
jle 0x45745f
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x14], edx
jmp 0x45730f
xor edi, edi
cmp dword [esp + 0x18], edi
jle 0x457443
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
xor esi, esi
xor edi, edi
lea edx, [eax + ecx + 4]
mov ecx, dword [esp + 0x18]
lea eax, [ebp*4]
mov dword [esp + 0xa0], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xb8], eax
mov dword [esp + 0xc0], ecx
jmp 0x457353
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
mov ecx, dword [edx]
cmp dword [ecx + edi], ebp
jne 0x457413
cmp ebp, 1
jne 0x457397
mov eax, dword [ebx + esi]
mov edx, dword [ecx + edi + 0x10]
cmp eax, edx
jg 0x457377
mov eax, edx
mov dword [ebx + esi], eax
mov eax, dword [ecx + edi + 0x18]
test eax, eax
je 0x45740b
mov eax, dword [esp + 0x7c]
mov dword [eax + esi], 1
mov ebx, dword [esp + 0x5c]
jmp 0x457413
xor edx, edx
test ebp, ebp
jle 0x4573c4
mov eax, esi
mov esi, ebp
add edx, dword [ebx + eax]
cmp dword [ecx + edi + 0x18], 0
je 0x4573ba
mov ebx, dword [esp + 0x7c]
mov dword [ebx + eax], 1
mov ebx, dword [esp + 0x5c]
add eax, 4
dec esi
jne 0x4573a1
mov esi, dword [esp + 0x10]
cmp edx, dword [ecx + edi + 8]
jge 0x457413
mov ecx, dword [ecx + edi + 0x10]
sub ecx, edx
mov eax, ecx
cdq
idiv ebp
mov esi, eax
mov eax, ecx
cdq
idiv ebp
mov eax, dword [esp + 0xb8]
mov ecx, dword [ebx + eax - 4]
add ecx, edx
test ebp, ebp
mov dword [ebx + eax - 4], ecx
jle 0x45740b
mov eax, dword [esp + 0x10]
mov edx, ebp
mov ecx, dword [esp + 0x5c]
add eax, 4
mov ebx, dword [ecx + eax - 4]
add ebx, esi
dec edx
mov dword [ecx + eax - 4], ebx
jne 0x4573f7
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0xc0]
add edi, 0x1c
add esi, 4
add ecx, 4
dec eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xc0], eax
jne 0x45734f
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x14]
add ecx, 0x10
dec eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], eax
jne 0x45730d
xor edi, edi
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, eax
jle 0x4572f3
mov eax, dword [esp + 0x1c]
mov edi, 1
cmp eax, edi
jl 0x457591
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
cmp ecx, ebx
jle 0x457588
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], ebx
test eax, eax
jle 0x457574
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea ecx, [ecx + edx + 4]
mov dword [esp + 0xa0], ecx
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x10]
mov esi, dword [edx]
cmp dword [esi + eax + 4], edi
jne 0x457552
cmp edi, 1
jne 0x4574f0
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + ebx*4]
mov ecx, dword [esi + ecx + 0x14]
cmp eax, ecx
jg 0x4574eb
mov eax, ecx
mov dword [edx + ebx*4], eax
jmp 0x457552
xor eax, eax
test edi, edi
jle 0x457509
mov edx, dword [esp + 0x6c]
lea ecx, [edx + ebx*4]
mov edx, edi
mov ebp, dword [ecx]
add ecx, 4
add eax, ebp
dec edx
jne 0x4574ff
mov ecx, dword [esp + 0x10]
mov ecx, dword [esi + ecx + 0x14]
cmp eax, ecx
jge 0x457552
sub ecx, eax
lea esi, [ebx*4]
mov eax, ecx
cdq
idiv edi
mov ebp, eax
mov eax, ecx
cdq
idiv edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + esi]
add ecx, edx
test edi, edi
mov dword [eax + esi], ecx
jle 0x457552
mov eax, esi
mov edx, edi
mov ecx, dword [esp + 0x6c]
add eax, 4
mov esi, dword [ecx + eax - 4]
add esi, ebp
dec edx
mov dword [ecx + eax - 4], esi
jne 0x45753e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 0x1c
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4574ba
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
inc ebx
add esi, 0x10
cmp ebx, ecx
mov dword [esp + 0x44], esi
jl 0x457493
inc edi
cmp edi, ecx
jle 0x45747d
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x5c]
mov eax, dword [ebp + 0xa8]
test edx, edx
lea esi, [eax + edx - 1]
lea edi, [eax + ecx - 1]
jle 0x4575cd
mov ecx, ebx
mov dword [esp + 0x28], edx
mov edx, eax
add edx, dword [ecx]
add ecx, 4
add esi, edx
mov edx, dword [esp + 0x28]
dec edx
mov dword [esp + 0x28], edx
jne 0x4575b9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4575f5
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], edx
mov edx, eax
add edx, dword [ecx]
add ecx, 4
add edi, edx
mov edx, dword [esp + 0x28]
dec edx
mov dword [esp + 0x28], edx
jne 0x4575e1
mov eax, dword [ebp + 0x88]
cmp eax, 6
mov eax, dword [ebp + 0x8c]
jne 0x457609
lea eax, [eax + eax*2]
shl eax, 1
add esi, eax
add edi, eax
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edi
jmp 0x457641
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, edx
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0xd0]
mov esi, dword [esp + 0x4c]
add eax, ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x10], eax
cmp eax, edx
je 0x4577d0
mov ecx, dword [esp + 0x50]
test esi, esi
jne 0x45766d
xor edx, edx
jmp 0x457674
mov edx, ecx
sub edx, esi
sar edx, 4
mov edi, dword [esp + 0x10]
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x457683
xor eax, eax
jmp 0x45768b
mov eax, dword [edi + 8]
sub eax, ebx
sar eax, 4
cmp edx, eax
ja 0x457703
cmp esi, ecx
mov edi, ecx
je 0x4576af
push esi
mov ecx, ebx
call fcn.00464020
add esi, 0x10
add ebx, 0x10
cmp esi, edi
jne 0x457695
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 8]
cmp ebx, edi
je 0x4576d2
push 0
mov ecx, ebx
call fcn.00463f10
add ebx, 0x10
cmp ebx, edi
jne 0x4576ba
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
test esi, esi
jne 0x4576ea
mov ecx, dword [esp + 0x10]
xor eax, eax
shl eax, 4
add eax, dword [ecx + 4]
mov dword [ecx + 8], eax
jmp 0x4577cc
sub ecx, esi
sar ecx, 4
mov eax, ecx
mov ecx, dword [esp + 0x10]
shl eax, 4
add eax, dword [ecx + 4]
mov dword [ecx + 8], eax
jmp 0x4577cc
test esi, esi
jne 0x45770b
xor edx, edx
jmp 0x457712
mov edx, ecx
sub edx, esi
sar edx, 4
test ebx, ebx
jne 0x45771a
xor eax, eax
jmp 0x457722
mov eax, dword [edi + 0xc]
sub eax, ebx
sar eax, 4
cmp edx, eax
ja 0x45777e
test ebx, ebx
jne 0x45772e
xor eax, eax
jmp 0x457736
mov eax, dword [edi + 8]
sub eax, ebx
sar eax, 4
shl eax, 4
add eax, esi
mov edi, eax
cmp esi, edi
je 0x457757
push esi
mov ecx, ebx
call fcn.00464020
add esi, 0x10
add ebx, 0x10
cmp esi, edi
jne 0x457741
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 8]
push edx
push ecx
push edi
mov ecx, esi
call fcn.0045f500
lea ecx, [esp + 0x48]
call fcn.0045f4a0
mov ecx, dword [esi + 4]
shl eax, 4
add eax, ecx
mov dword [esi + 8], eax
jmp 0x4577cc
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push ebx
call fcn.0045f4c0
mov eax, dword [edi + 4]
push eax
call fcn.00509e5a
add esp, 4
lea ecx, [esp + 0x48]
call fcn.0045f4a0
test eax, eax
jge 0x4577a5
xor eax, eax
shl eax, 4
push eax
call fcn.00509e31
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
mov ecx, edi
call fcn.0045f500
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x58]
lea esi, [eax + 0x10]
cmp esi, ecx
je 0x45790c
test ebx, ebx
jne 0x4577ef
mov eax, dword [esp + 0x60]
xor edi, edi
jmp 0x4577fa
mov eax, dword [esp + 0x60]
mov edi, eax
sub edi, ebx
sar edi, 2
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x457805
xor edx, edx
jmp 0x45780d
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
cmp edi, edx
ja 0x457854
cmp ebx, eax
je 0x45782b
mov edx, dword [ebx]
add ebx, 4
mov dword [ecx], edx
add ecx, 4
cmp ebx, eax
jne 0x457815
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
xor edi, edi
cmp ebx, edi
jne 0x457841
mov ecx, dword [esi + 4]
xor eax, eax
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x45790e
mov ecx, dword [esi + 4]
sub eax, ebx
sar eax, 2
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x45790e
xor edi, edi
cmp ebx, edi
jne 0x45785e
xor eax, eax
jmp 0x457863
sub eax, ebx
sar eax, 2
cmp ecx, edi
jne 0x45786b
xor edx, edx
jmp 0x457873
mov edx, dword [esi + 0xc]
sub edx, ecx
sar edx, 2
cmp eax, edx
ja 0x4578b8
mov ecx, esi
call fcn.0045f2e0
mov ecx, dword [esp + 0x5c]
lea ebx, [ebx + eax*4]
mov eax, dword [esi + 4]
push eax
push ebx
push ecx
call fcn.00463670
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov ecx, esi
push edx
push eax
push ebx
call fcn.0045f560
lea ecx, [esp + 0x58]
call fcn.0045f2e0
mov ecx, dword [esi + 4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x45790e
mov eax, dword [esi + 8]
push eax
push ecx
mov ecx, esi
call fcn.0046ca10
mov eax, dword [esi + 4]
push eax
call fcn.00509e5a
add esp, 4
lea ecx, [esp + 0x58]
call fcn.0045f2e0
cmp eax, edi
jge 0x4578df
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.00509e31
add esp, 4
mov dword [esi + 4], eax
mov edx, dword [esp + 0x60]
mov ecx, esi
push eax
mov eax, dword [esp + 0x60]
push edx
push eax
call fcn.0045f560
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
jmp 0x45790e
xor edi, edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x68]
lea esi, [ecx + 0x20]
cmp esi, edx
je 0x457a3a
mov ebx, dword [esp + 0x6c]
cmp ebx, edi
jne 0x45792d
xor edx, edx
jmp 0x457936
mov edx, dword [esp + 0x70]
sub edx, ebx
sar edx, 2
mov ecx, dword [esi + 4]
cmp ecx, edi
jne 0x457941
xor eax, eax
jmp 0x457949
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edx, eax
ja 0x45798a
mov edx, dword [esp + 0x70]
mov eax, ebx
cmp ebx, edx
je 0x457965
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x457957
mov eax, dword [esi + 8]
push eax
push ecx
mov ecx, esi
call fcn.0046ca10
lea ecx, [esp + 0x68]
call fcn.0045f2e0
mov ecx, dword [esi + 4]
xor edi, edi
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x457a3a
mov ecx, esi
call fcn.0045f540
lea ecx, [esp + 0x68]
mov ebx, eax
call fcn.0045f2e0
cmp eax, ebx
ja 0x4579e5
mov ebx, dword [esp + 0x6c]
mov ecx, esi
call fcn.0045f2e0
mov ecx, dword [esp + 0x6c]
lea ebx, [ebx + eax*4]
mov eax, dword [esi + 4]
push eax
push ebx
push ecx
call fcn.00463670
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov ecx, esi
push edx
push eax
push ebx
call fcn.0045f560
lea ecx, [esp + 0x68]
call fcn.0045f2e0
mov ecx, dword [esi + 4]
lea edx, [ecx + eax*4]
mov dword [esi + 8], edx
jmp 0x457a3a
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0046ca10
mov eax, dword [esi + 4]
push eax
call fcn.00509e5a
add esp, 4
lea ecx, [esp + 0x68]
call fcn.0045f2e0
cmp eax, edi
jge 0x457a0f
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00509e31
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
push eax
push ecx
mov ecx, esi
call fcn.0045f560
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x78]
push edx
lea ecx, [eax + 0x30]
call fcn.0045f150
push str.table
lea ecx, [ebp + 0x3c]
call fcn.00509974
push 1
mov ecx, ebp
call fcn.0045ad20
test eax, eax
je 0x457a6c
mov ecx, ebp
call fcn.0045b050
mov ebx, dword [esp + 0x144]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov byte [esp + 0x13c], 0xc
mov dword [ebx], ecx
lea ecx, [esp + 0xbc]
mov dword [ebx + 4], edx
call fcn.005097eb
lea ecx, [esp + 0xb0]
mov byte [esp + 0x13c], 0xb
call fcn.005097eb
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x13c], 0xffffffff
push eax
call fcn.00509e5a
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x80], edi
push ecx
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
call fcn.00509e5a
mov edx, dword [esp + 0x64]
mov dword [esp + 0x74], edi
push edx
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
call fcn.00509e5a
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
add esp, 0xc
cmp esi, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov ebp, eax
je 0x457b5e
add esi, 4
mov ebx, dword [esi + 4]
mov edi, dword [esi]
cmp edi, ebx
je 0x457b34
push edi
lea ecx, [esi - 4]
call fcn.00401000
add edi, 0x1c
cmp edi, ebx
jne 0x457b24
mov eax, dword [esi]
push eax
call fcn.00509e5a
xor eax, eax
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
add esi, 0x10
lea ecx, [esi - 4]
cmp ecx, ebp
jne 0x457b1b
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x144]
push esi
call fcn.00509e5a
mov ecx, dword [esp + 0x138]
add esp, 4
mov eax, ebx
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0xc