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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x486a01
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x500], ebx
jne case.0x427a5d.4
cmp dword [esi + 0x478], ebx
je 0x427588
mov edi, dword [esi + 0x184]
mov eax, dword [esi + 0x2b8]
push 0x49ba78
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.00417900
cmp eax, ebx
jge 0x42740a
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x6c]
call fcn.00413210
jmp 0x427410
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], eax
push ecx
call dword [0x489460]
mov ebx, dword [esp + 0xc8]
test eax, eax
jne 0x42748e
mov ebp, dword [esi + 0x4f0]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
lea edi, [ebp + ebp]
sub eax, edi
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0xc4]
mov ecx, eax
mov eax, dword [esp + 0x28]
sar ecx, 1
cmp edx, eax
jl 0x42748e
mov eax, edx
mov edx, dword [esp + 0x30]
cmp eax, edx
jge 0x42748e
cmp ebx, ecx
jl 0x42748e
add edi, ecx
cmp ebx, edi
jge 0x42748e
mov eax, ebx
sub eax, ecx
cdq
idiv ebp
mov dword [esi + 0x2b8], eax
mov edi, dword [esi + 0x184]
push 0x49bbd4
mov ecx, edi
call fcn.00417900
test eax, eax
jge 0x4274b7
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
call fcn.00413210
jmp 0x4274bd
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov ebp, dword [0x489488]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0xc]
push ebx
lea edx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x54], eax
call ebp
test eax, eax
je 0x4274fc
mov dword [esi + 0x2b8], 0
mov edi, dword [esi + 0x184]
push 0x49bbc4
mov ecx, edi
call fcn.00417900
test eax, eax
jge 0x427525
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
call fcn.00413210
jmp 0x42752b
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
push ebx
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x54], eax
call ebp
test eax, eax
je 0x427564
mov dword [esi + 0x2b8], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x2b8]
cmp ecx, eax
je case.0x427a5d.4
mov ecx, dword [esi + 0x184]
push 0
call fcn.00417d40
jmp 0x428146
mov eax, dword [esi + 0xde8]
cmp eax, 7
ja case.0x427a5d.4
jmp dword [eax*4 + 0x428170]
mov ecx, dword [esi + 0x2b8]
mov edi, dword [esi + 0x180]
mov dword [esp + 0x10], ecx
push 0x49ba78
mov ecx, edi
call fcn.00417900
cmp eax, ebx
jge 0x4275cd
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00413210
jmp 0x4275d3
mov edx, dword [edi + 0x24]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x28]
mov dword [esp + 0x34], edx
push eax
call dword [0x489460]
test eax, eax
jne 0x427670
mov edi, dword [esi + 0x4f0]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0xc4]
lea edx, [edi + edi*2]
shl edx, 1
sub ecx, edx
add ecx, ebp
mov ebp, dword [esp + 0x28]
shr ecx, 1
cmp eax, ebp
jl 0x42765f
cmp eax, dword [esp + 0x30]
jge 0x42765f
mov eax, dword [esp + 0xc8]
cmp eax, ecx
jl 0x42765f
add edx, ecx
cmp eax, edx
jae 0x42765f
sub eax, ecx
cdq
idiv edi
mov edi, eax
mov eax, dword [esi + 0x2b8]
cmp edi, eax
je 0x427659
push 0x49a2fc
mov ecx, esi
call fcn.00435c30
mov dword [esi + 0x2b8], edi
mov ecx, dword [esi + 0x180]
push ebx
call fcn.00417d40
jmp case.0x427a5d.4
mov dword [esi + 0x2b8], 0xffffffff
xor ebp, ebp
mov ebx, 0x48a604
mov edi, dword [esi + 0x180]
mov eax, dword [ebx]
push eax
mov ecx, edi
call fcn.00417900
test eax, eax
jge 0x4276a8
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00413210
jmp 0x4276ae
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x48], eax
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [0x489488]
test eax, eax
je 0x4276ee
mov dword [esi + 0x2b8], ebp
add ebx, 4
inc ebp
cmp ebx, 0x48a638
jb 0x427681
mov eax, dword [esi + 0x2b8]
mov edi, dword [esp + 0x10]
cmp eax, edi
je case.0x427a5d.4
cmp eax, 0xffffffff
je 0x427733
mov ecx, dword [eax*4 + 0x48a604]
push ecx
push 0x49bbb0
push esi
call fcn.00435ea0
add esp, 0xc
mov ecx, esi
push 0x49a2fc
call fcn.00435c30
cmp edi, 0xffffffff
je 0x42774b
mov edx, dword [edi*4 + 0x48a604]
mov ecx, dword [esi + 0x180]
push edx
call fcn.00417d40
mov eax, dword [esi + 0x2b8]
cmp eax, 0xffffffff
je case.0x427a5d.4
mov eax, dword [eax*4 + 0x48a604]
mov ecx, dword [esi + 0x180]
push eax
call fcn.00417d40
jmp case.0x427a5d.4
mov edi, dword [esi + 0x190]
push 0x49babc
mov ecx, edi
call fcn.00417900
cmp eax, ebx
jge 0x427797
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00413210
jmp 0x42779d
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], eax
push ecx
call dword [0x489460]
test eax, eax
jne 0x42787f
mov ebp, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push ebp
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x489488]
test eax, eax
je case.0x427a5d.4
mov ebx, dword [esi + 0x358]
mov edi, dword [esi + 0x4e8]
mov ecx, ebx
mov edx, dword [esp + 0x2c]
imul ecx, edi
add ecx, edx
cmp ebp, ecx
jge case.0x427a5d.4
mov eax, ebp
mov ecx, dword [esi + 0x354]
sub eax, edx
cdq
idiv edi
mov edi, eax
mov eax, ecx
cdq
idiv ebx
mov eax, dword [0x4990c8]
sub edi, edx
add edi, ecx
cmp edi, eax
jge case.0x427a5d.4
cmp ecx, edi
je case.0x427a5d.4
push 0x49a2fc
mov ecx, esi
call fcn.00435c30
mov ecx, esi
mov dword [esi + 0x354], edi
call fcn.0041fe30
sub esp, 0x10
mov edx, dword [0x4990c0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4990c4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
jmp case.0x427a5d.4
mov edi, dword [esi + 0x358]
test edi, edi
jle case.0x427a5d.4
mov ecx, dword [esi + 0x354]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
mov edx, dword [0x49e2a4]
add ecx, ebx
mov dword [esp + 0x10], edx
mov edi, ecx
push ebx
lea eax, [esp + 0x14]
push 0x49bab0
push eax
mov dword [esp + 0xc4], 0
call fcn.004754c2
mov eax, dword [0x4990c8]
add esp, 0xc
cmp edi, eax
jge 0x427989
cmp dword [esi + 0x354], edi
je 0x427989
mov ecx, dword [esp + 0x10]
mov ebp, dword [esi + 0x190]
push ecx
mov ecx, ebp
call fcn.00417900
test eax, eax
jge 0x427908
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00413210
jmp 0x42790e
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x7c], edx
push eax
lea edx, [esp + 0x74]
push ecx
push edx
call dword [0x489488]
test eax, eax
je 0x427989
mov ecx, esi
mov dword [esi + 0x354], edi
call fcn.0041fe30
sub esp, 0x10
mov edx, dword [0x4990c0]
mov ebp, esp
xor eax, eax
mov edi, dword [0x4990c4]
xor ecx, ecx
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.00402ee0
push 0x49a2fc
mov ecx, esi
call fcn.00435c30
lea ecx, [esp + 0x10]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00476964
mov edi, dword [esi + 0x358]
inc ebx
cmp ebx, edi
jl 0x42788d
jmp case.0x427a5d.4
mov edi, dword [esi + 0x1c]
call dword [0x489440]
cmp eax, edi
mov eax, dword [esi + 0x438]
jne 0x427baa
mov edi, dword [esi + 0x190]
lea eax, [eax + eax*4]
mov ecx, edi
mov eax, dword [eax*4 + 0x49a504]
push eax
call fcn.00417900
cmp eax, ebx
jge 0x4279fa
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
jmp 0x427a00
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov edi, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x438]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [eax*4 + 0x49a504]
push ecx
mov ecx, dword [esi + 0x190]
push edx
call fcn.00417aa0
sub esp, 0x10
mov ecx, dword [esp + 0x68]
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov ecx, esi
call fcn.00402ee0
mov ecx, dword [esi + 0x438]
lea eax, [ecx - 3]
cmp eax, 7
ja case.0x427a5d.4
jmp dword [eax*4 + 0x428190]
mov ebp, dword [esp + 0x10]
mov eax, ebp
sub edi, ebp
cdq
sub eax, edx
sub edi, ebx
mov edx, eax
mov eax, dword [esp + 0xc4]
sar edx, 1
sub eax, edx
sub eax, ebx
shl eax, 8
cdq
idiv edi
mov dword [esi + ecx*4 + 0x360], eax
mov eax, dword [esi + 0x438]
lea ecx, [esi + eax*4 + 0x360]
mov eax, dword [esi + eax*4 + 0x360]
test eax, eax
jle 0x427aac
cmp eax, 0x100
jge 0x427ab8
xor edx, edx
test eax, eax
setle dl
dec edx
and eax, edx
jmp 0x427abd
mov eax, 0x100
mov dword [ecx], eax
xor ebx, ebx
mov edi, str._n_b_n_t_n
mov eax, dword [edi]
mov ecx, dword [esi + 0x438]
cmp eax, ecx
jne 0x427ada
push ebx
mov ecx, esi
call fcn.004364f0
add edi, 4
inc ebx
cmp edi, 0x48a6dc
jl 0x427ac6
jmp case.0x427a5d.4
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub edi, ecx
cdq
sub eax, edx
sub edi, ebx
mov edx, eax
mov eax, dword [esp + 0xc4]
sar edx, 1
sub eax, edx
sub eax, ebx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv edi
test eax, eax
mov dword [esi + 0x36c], eax
jle 0x427b2d
cmp eax, 0x64
jge 0x427b3a
mov dword [esi + 0x36c], eax
jmp case.0x427a5d.4
xor eax, eax
mov dword [esi + 0x36c], eax
jmp case.0x427a5d.4
mov eax, 0x64
mov dword [esi + 0x36c], eax
jmp case.0x427a5d.4
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub edi, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0xc4]
sar eax, 1
sub eax, edx
sub edi, ebx
add eax, ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv edi
add eax, 0x78
test eax, eax
mov dword [esi + 0x37c], eax
jle 0x427b8d
cmp eax, 0x78
jge 0x427b9a
mov dword [esi + 0x37c], eax
jmp case.0x427a5d.4
xor eax, eax
mov dword [esi + 0x37c], eax
jmp case.0x427a5d.4
mov eax, 0x78
mov dword [esi + 0x37c], eax
jmp case.0x427a5d.4
mov dword [esp + 0x38], eax
mov dword [esi + 0x438], 0xffffffff
xor ebx, ebx
mov ebp, 0x49a428
mov eax, dword [ebp]
test eax, eax
je 0x427c45
mov edi, dword [esi + 0x190]
push eax
mov ecx, edi
call fcn.00417900
test eax, eax
jge 0x427bf0
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
jmp 0x427bf6
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x80], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x88], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x8c], eax
push ecx
lea eax, [esp + 0x84]
push edx
push eax
call dword [0x489488]
test eax, eax
je 0x427c45
mov dword [esi + 0x438], ebx
add ebp, 4
inc ebx
cmp ebp, str.SCRN0I
jl 0x427bbf
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x438]
cmp ecx, eax
je case.0x427a5d.4
cmp eax, 0xffffffff
je 0x427c7f
mov ecx, dword [eax*4 + 0x49a428]
push ecx
mov ecx, dword [esi + 0x190]
call fcn.00417d40
mov eax, dword [esi + 0x438]
cmp eax, 0xffffffff
je case.0x427a5d.4
mov edx, dword [eax*4 + 0x49a428]
mov ecx, dword [esi + 0x190]
push edx
call fcn.00417d40
jmp case.0x427a5d.4
mov edi, dword [esi + 0x1c]
call dword [0x489440]
cmp eax, edi
jne 0x427d82
mov edi, dword [esi + 0x194]
push 0x499ee4
mov ecx, edi
call fcn.00417900
cmp eax, ebx
jge 0x427ce3
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
jmp 0x427ce9
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax]
mov edi, dword [esi + 0x898]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ebx, dword [eax + 8]
mov dword [esp + 0x30], ebx
mov ebp, dword [eax + 0xc]
mov eax, dword [esp + 0xc8]
sub ecx, ebx
sub eax, dword [esi + 0x460]
mov ebx, dword [esi + 0x448]
shl ecx, 1
imul eax, edi
sub ecx, edx
mov dword [esp + 0x34], ebp
cdq
add ecx, ebp
idiv ecx
mov edx, dword [esi + 0x444]
add eax, ebx
xor ebx, ebx
test eax, eax
setle bl
dec ebx
and ebx, eax
mov eax, edi
sub eax, edx
cmp ebx, eax
jl 0x427d47
mov ebx, eax
cmp dword [esi + 0x440], ebx
je 0x427d77
sub esp, 0x10
mov edx, dword [0x4990c0]
mov ebp, esp
xor eax, eax
mov edi, dword [0x4990c4]
xor ecx, ecx
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
call fcn.00402ee0
mov dword [esi + 0x440], ebx
jmp case.0x427a5d.4
xor ebp, ebp
mov eax, dword [esi + 0x898]
mov ecx, dword [esi + 0x440]
mov edx, dword [esi + 0x444]
mov edi, eax
sub edi, ecx
cmp edi, edx
jge 0x427da2
sub eax, ecx
jmp 0x427da4
mov eax, edx
cmp ebp, eax
jge case.0x427a5d.4
mov edx, dword [0x49e2a4]
mov dword [esp + 0x10], edx
push ebp
lea eax, [esp + 0x14]
push 0x49bba8
push eax
mov dword [esp + 0xc4], 1
call fcn.004754c2
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0x194]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.00417900
cmp eax, ebx
jge 0x427e00
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
jmp 0x427e06
mov edx, dword [edi + 0x24]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa4], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xa8], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xac], edx
push eax
lea edx, [esp + 0xa4]
push ecx
push edx
call dword [0x489488]
test eax, eax
je 0x427ea4
mov eax, dword [esi + 0x440]
mov ecx, dword [esi + 0x43c]
add eax, ebp
cmp ecx, eax
je 0x427e96
sub esp, 0x10
mov edx, dword [0x4990c0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4990c4]
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
call fcn.00402ee0
push 0x49a2fc
mov ecx, esi
call fcn.00435c30
xor ebx, ebx
mov ecx, dword [esi + 0x440]
add ecx, ebp
mov dword [esi + 0x43c], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00476964
inc ebp
jmp 0x427d84
mov ecx, dword [esi + 0x2a0]
cmp ecx, ebx
je 0x427eea
mov eax, dword [esp + 0xc8]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0xc8]
push eax
mov eax, dword [esp + 0xc8]
push eax
call dword [edx + 8]
jmp case.0x427a5d.4
cmp dword [esi + 0xde4], 4
jne case.0x427a5d.4
mov ecx, dword [esi + 0x2b4]
mov edi, dword [esi + 0x138]
mov dword [esp + 0x10], ecx
push 0x49ba78
mov ecx, edi
mov dword [esi + 0x2b4], 0xffffffff
call fcn.00417900
cmp eax, ebx
jge 0x427f37
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x18]
jmp 0x427f3d
mov edx, dword [edi + 0x24]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + 8]
mov edi, dword [esi + 0x8d0]
mov ebx, dword [esi + 0x4f0]
mov dword [esp + 0x54], edx
mov edx, edi
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
imul edx, ebx
mov eax, dword [eax + 0xc]
sub eax, edx
add eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0xc4]
sar ecx, 1
cmp eax, ebp
jl 0x427f98
cmp eax, dword [esp + 0x54]
jge 0x427f98
mov eax, dword [esp + 0xc8]
cmp eax, ecx
jl 0x427f98
imul edi, ebx
add edi, ecx
cmp eax, edi
jge 0x427f98
sub eax, ecx
cdq
idiv ebx
mov dword [esi + 0x2b4], eax
mov eax, dword [esi + 0x8d0]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
jle 0x428123
mov ecx, dword [0x49e2a4]
mov dword [esp + 0x38], ecx
push ebx
lea edx, [esp + 0x3c]
push 0x49bb94
push edx
mov dword [esp + 0xc4], 2
call fcn.004754c2
mov edi, dword [esi + 0x138]
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, edi
push eax
call fcn.00417900
cmp eax, ebp
jge 0x427ffe
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea eax, [esp + 0x18]
jmp 0x428004
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov dword [esp + 0x90], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x94], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x98], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x9c], eax
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call dword [0x489488]
test eax, eax
je 0x428053
mov dword [esi + 0x2b4], ebx
cmp ebx, dword [esi + 0x8d0]
jge 0x428070
cmp ebx, ebp
jl 0x428070
mov eax, dword [esi + 0x8c8]
je 0x428072
mov ecx, ebx
mov eax, dword [eax]
dec ecx
jne 0x428069
jmp 0x428072
xor eax, eax
add eax, 8
lea ecx, [esp + 0x6c]
push eax
push 0x49bb8c
push ecx
call fcn.00476c21
mov eax, dword [eax]
mov edi, dword [esi + 0x138]
push eax
mov ecx, edi
call fcn.00417900
cmp eax, ebp
jge 0x4280af
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
lea eax, [esp + 0x4c]
jmp 0x4280b5
mov edx, dword [edi + 0x24]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0x5c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x60], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x68], edx
push eax
lea edx, [esp + 0x60]
push ecx
push edx
call dword [0x489488]
lea ecx, [esp + 0x6c]
mov edi, eax
call fcn.00476964
cmp edi, ebp
je 0x428100
mov dword [esi + 0x2b4], ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00476964
mov eax, dword [esi + 0x8d0]
inc ebx
cmp ebx, eax
jl 0x427faa
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x2b4]
cmp ecx, eax
je case.0x427a5d.4
mov ecx, dword [esi + 0x138]
push ebp
call fcn.00417d40
cmp dword [esi + 0x2b4], 0xffffffff
je case.0x427a5d.4
push 0x49a2fc
mov ecx, esi
call fcn.00435c30
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xac
ret 0xc