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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x493171
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 + 0x460], ebx
jne case.0x43110d.4
cmp dword [esi + 0x3d4], ebx
je 0x430c38
mov edi, dword [esi + 0x188]
mov eax, dword [esi + 0x210]
push 0x4aa050
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.0041f260
cmp eax, ebx
jge 0x430aba
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x6c]
call fcn.00417d40
jmp 0x430ac0
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 [0x49648c]
mov ebx, dword [esp + 0xc8]
test eax, eax
jne 0x430b3e
mov ebp, dword [esi + 0x450]
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 0x430b3e
mov eax, edx
mov edx, dword [esp + 0x30]
cmp eax, edx
jge 0x430b3e
cmp ebx, ecx
jl 0x430b3e
add edi, ecx
cmp ebx, edi
jge 0x430b3e
mov eax, ebx
sub eax, ecx
cdq
idiv ebp
mov dword [esi + 0x210], eax
mov edi, dword [esi + 0x188]
push 0x4aa1b8
mov ecx, edi
call fcn.0041f260
test eax, eax
jge 0x430b67
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
call fcn.00417d40
jmp 0x430b6d
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov edx, dword [eax]
mov ebp, dword [0x4964a4]
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 0x430bac
mov dword [esi + 0x210], 0
mov edi, dword [esi + 0x188]
push 0x4aa1a8
mov ecx, edi
call fcn.0041f260
test eax, eax
jge 0x430bd5
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x6c]
call fcn.00417d40
jmp 0x430bdb
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 0x430c14
mov dword [esi + 0x210], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x210]
cmp ecx, eax
je case.0x43110d.4
mov ecx, dword [esi + 0x188]
push 0
call fcn.0041f6b0
jmp 0x431802
mov eax, dword [esi + 0xd30]
cmp eax, 7
ja case.0x43110d.4
jmp dword [eax*4 + 0x43182c]
mov ecx, dword [esi + 0x210]
mov edi, dword [esi + 0x184]
mov dword [esp + 0x10], ecx
push 0x4aa050
mov ecx, edi
call fcn.0041f260
cmp eax, ebx
jge 0x430c7d
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00417d40
jmp 0x430c83
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 [0x49648c]
test eax, eax
jne 0x430d20
mov edi, dword [esi + 0x450]
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 0x430d0f
cmp eax, dword [esp + 0x30]
jge 0x430d0f
mov eax, dword [esp + 0xc8]
cmp eax, ecx
jl 0x430d0f
add edx, ecx
cmp eax, edx
jae 0x430d0f
sub eax, ecx
cdq
idiv edi
mov edi, eax
mov eax, dword [esi + 0x210]
cmp edi, eax
je 0x430d09
push 0x4a8724
mov ecx, esi
call fcn.004408a0
mov dword [esi + 0x210], edi
mov ecx, dword [esi + 0x184]
push ebx
call fcn.0041f6b0
jmp case.0x43110d.4
mov dword [esi + 0x210], 0xffffffff
xor ebp, ebp
mov ebx, 0x4976c4
mov edi, dword [esi + 0x184]
mov eax, dword [ebx]
push eax
mov ecx, edi
call fcn.0041f260
test eax, eax
jge 0x430d58
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00417d40
jmp 0x430d5e
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 [0x4964a4]
test eax, eax
je 0x430d9e
mov dword [esi + 0x210], ebp
add ebx, 4
inc ebp
cmp ebx, 0x4976f8
jb 0x430d31
mov eax, dword [esi + 0x210]
mov edi, dword [esp + 0x10]
cmp eax, edi
je case.0x43110d.4
cmp eax, 0xffffffff
je 0x430de3
mov ecx, dword [eax*4 + 0x4976c4]
push ecx
push 0x4aa194
push esi
call fcn.00440b10
add esp, 0xc
mov ecx, esi
push 0x4a8724
call fcn.004408a0
cmp edi, 0xffffffff
je 0x430dfb
mov edx, dword [edi*4 + 0x4976c4]
mov ecx, dword [esi + 0x184]
push edx
call fcn.0041f6b0
mov eax, dword [esi + 0x210]
cmp eax, 0xffffffff
je case.0x43110d.4
mov eax, dword [eax*4 + 0x4976c4]
mov ecx, dword [esi + 0x184]
push eax
call fcn.0041f6b0
jmp case.0x43110d.4
mov edi, dword [esi + 0x194]
push 0x4aa094
mov ecx, edi
call fcn.0041f260
cmp eax, ebx
jge 0x430e47
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x5c]
call fcn.00417d40
jmp 0x430e4d
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 [0x49648c]
test eax, eax
jne 0x430f2f
mov ebp, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
push ebp
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4964a4]
test eax, eax
je case.0x43110d.4
mov ebx, dword [esi + 0x2b0]
mov edi, dword [esi + 0x448]
mov ecx, ebx
mov edx, dword [esp + 0x2c]
imul ecx, edi
add ecx, edx
cmp ebp, ecx
jge case.0x43110d.4
mov eax, ebp
mov ecx, dword [esi + 0x2ac]
sub eax, edx
cdq
idiv edi
mov edi, eax
mov eax, ecx
cdq
idiv ebx
mov eax, dword [0x4a70d8]
sub edi, edx
add edi, ecx
cmp edi, eax
jge case.0x43110d.4
cmp ecx, edi
je case.0x43110d.4
push 0x4a8724
mov ecx, esi
call fcn.004408a0
mov ecx, esi
mov dword [esi + 0x2ac], edi
call fcn.004286e0
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4a70d4]
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.0x43110d.4
mov edi, dword [esi + 0x2b0]
test edi, edi
jle case.0x43110d.4
mov ecx, dword [esi + 0x2ac]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
mov edx, dword [0x4aca3c]
add ecx, ebx
mov dword [esp + 0x10], edx
mov edi, ecx
push ebx
lea eax, [esp + 0x14]
push 0x4aa088
push eax
mov dword [esp + 0xc4], 0
call fcn.0048167d
mov eax, dword [0x4a70d8]
add esp, 0xc
cmp edi, eax
jge 0x431039
cmp dword [esi + 0x2ac], edi
je 0x431039
mov ecx, dword [esp + 0x10]
mov ebp, dword [esi + 0x194]
push ecx
mov ecx, ebp
call fcn.0041f260
test eax, eax
jge 0x430fb8
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.00417d40
jmp 0x430fbe
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 [0x4964a4]
test eax, eax
je 0x431039
mov ecx, esi
mov dword [esi + 0x2ac], edi
call fcn.004286e0
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebp, esp
xor eax, eax
mov edi, dword [0x4a70d4]
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 0x4a8724
mov ecx, esi
call fcn.004408a0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00482c2a
mov edi, dword [esi + 0x2b0]
inc ebx
cmp ebx, edi
jl 0x430f3d
jmp case.0x43110d.4
mov edi, dword [esi + 0x1c]
call dword [0x4964a8]
cmp eax, edi
mov eax, dword [esi + 0x390]
jne 0x43125a
mov edi, dword [esi + 0x194]
lea eax, [eax + eax*4]
mov ecx, edi
mov eax, dword [eax*4 + 0x4a8954]
push eax
call fcn.0041f260
cmp eax, ebx
jge 0x4310aa
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 0x4310b0
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 + 0x390]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [eax*4 + 0x4a8954]
push ecx
mov ecx, dword [esi + 0x194]
push edx
call fcn.0041f3f0
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 + 0x390]
lea eax, [ecx - 3]
cmp eax, 7
ja case.0x43110d.4
jmp dword [eax*4 + 0x43184c]
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 + 0x2b8], eax
mov eax, dword [esi + 0x390]
lea ecx, [esi + eax*4 + 0x2b8]
mov eax, dword [esi + eax*4 + 0x2b8]
test eax, eax
jle 0x43115c
cmp eax, 0x100
jge 0x431168
xor edx, edx
test eax, eax
setle dl
dec edx
and eax, edx
jmp 0x43116d
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 + 0x390]
cmp eax, ecx
jne 0x43118a
push ebx
mov ecx, esi
call fcn.00441160
add edi, 4
inc ebx
cmp edi, 0x4977ac
jl 0x431176
jmp case.0x43110d.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 + 0x2c4], eax
jle 0x4311dd
cmp eax, 0x64
jge 0x4311ea
mov dword [esi + 0x2c4], eax
jmp case.0x43110d.4
xor eax, eax
mov dword [esi + 0x2c4], eax
jmp case.0x43110d.4
mov eax, 0x64
mov dword [esi + 0x2c4], eax
jmp case.0x43110d.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 + 0x2d4], eax
jle 0x43123d
cmp eax, 0x78
jge 0x43124a
mov dword [esi + 0x2d4], eax
jmp case.0x43110d.4
xor eax, eax
mov dword [esi + 0x2d4], eax
jmp case.0x43110d.4
mov eax, 0x78
mov dword [esi + 0x2d4], eax
jmp case.0x43110d.4
mov dword [esp + 0x38], eax
mov dword [esi + 0x390], 0xffffffff
xor ebx, ebx
mov ebp, 0x4a8878
mov eax, dword [ebp]
test eax, eax
je 0x4312f5
mov edi, dword [esi + 0x194]
push eax
mov ecx, edi
call fcn.0041f260
test eax, eax
jge 0x4312a0
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 0x4312a6
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 [0x4964a4]
test eax, eax
je 0x4312f5
mov dword [esi + 0x390], ebx
add ebp, 4
inc ebx
cmp ebp, str.SCRNh
jl 0x43126f
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x390]
cmp ecx, eax
je case.0x43110d.4
cmp eax, 0xffffffff
je 0x43132f
mov ecx, dword [eax*4 + 0x4a8878]
push ecx
mov ecx, dword [esi + 0x194]
call fcn.0041f6b0
mov eax, dword [esi + 0x390]
cmp eax, 0xffffffff
je case.0x43110d.4
mov edx, dword [eax*4 + 0x4a8878]
mov ecx, dword [esi + 0x194]
push edx
call fcn.0041f6b0
jmp case.0x43110d.4
mov edi, dword [esi + 0x1c]
call dword [0x4964a8]
cmp eax, edi
jne 0x431432
mov edi, dword [esi + 0x198]
push 0x4a7f1c
mov ecx, edi
call fcn.0041f260
cmp eax, ebx
jge 0x431393
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 0x431399
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax]
mov edi, dword [esi + 0x7f8]
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 + 0x3b8]
mov ebx, dword [esi + 0x3a0]
shl ecx, 1
imul eax, edi
sub ecx, edx
mov dword [esp + 0x34], ebp
cdq
add ecx, ebp
idiv ecx
mov edx, dword [esi + 0x39c]
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 0x4313f7
mov ebx, eax
cmp dword [esi + 0x398], ebx
je 0x431427
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebp, esp
xor eax, eax
mov edi, dword [0x4a70d4]
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 + 0x398], ebx
jmp case.0x43110d.4
xor ebp, ebp
mov eax, dword [esi + 0x7f8]
mov ecx, dword [esi + 0x398]
mov edx, dword [esi + 0x39c]
mov edi, eax
sub edi, ecx
cmp edi, edx
jge 0x431452
sub eax, ecx
jmp 0x431454
mov eax, edx
cmp ebp, eax
jge case.0x43110d.4
mov edx, dword [0x4aca3c]
mov dword [esp + 0x10], edx
push ebp
lea eax, [esp + 0x14]
push 0x4aa18c
push eax
mov dword [esp + 0xc4], 1
call fcn.0048167d
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 0x198]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.0041f260
cmp eax, ebx
jge 0x4314b0
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 0x4314b6
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 [0x4964a4]
test eax, eax
je 0x431554
mov eax, dword [esi + 0x398]
mov ecx, dword [esi + 0x394]
add eax, ebp
cmp ecx, eax
je 0x431546
sub esp, 0x10
mov edx, dword [0x4a70d0]
mov ebx, esp
xor eax, eax
mov edi, dword [0x4a70d4]
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 0x4a8724
mov ecx, esi
call fcn.004408a0
xor ebx, ebx
mov ecx, dword [esi + 0x398]
add ecx, ebp
mov dword [esi + 0x394], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00482c2a
inc ebp
jmp 0x431434
cmp dword [0x4b7f04], ebx
jne case.0x43110d.4
mov ecx, dword [esi + 0x1f8]
cmp ecx, ebx
je 0x4315a6
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 + 0xc]
jmp case.0x43110d.4
cmp dword [esi + 0xd2c], 4
jne case.0x43110d.4
mov ecx, dword [esi + 0x20c]
mov edi, dword [esi + 0x13c]
mov dword [esp + 0x10], ecx
push 0x4aa050
mov ecx, edi
mov dword [esi + 0x20c], 0xffffffff
call fcn.0041f260
cmp eax, ebx
jge 0x4315f3
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 0x4315f9
mov edx, dword [edi + 0x24]
mov eax, dword [edx + eax*4]
mov edx, dword [eax + 8]
mov edi, dword [esi + 0x814]
mov ebx, dword [esi + 0x450]
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 0x431654
cmp eax, dword [esp + 0x54]
jge 0x431654
mov eax, dword [esp + 0xc8]
cmp eax, ecx
jl 0x431654
imul edi, ebx
add edi, ecx
cmp eax, edi
jge 0x431654
sub eax, ecx
cdq
idiv ebx
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x814]
xor ebp, ebp
xor ebx, ebx
cmp eax, ebp
jle 0x4317df
mov ecx, dword [0x4aca3c]
mov dword [esp + 0x38], ecx
push ebx
lea edx, [esp + 0x3c]
push 0x4aa178
push edx
mov dword [esp + 0xc4], 2
call fcn.0048167d
mov edi, dword [esi + 0x13c]
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0041f260
cmp eax, ebp
jge 0x4316ba
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 0x4316c0
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 [0x4964a4]
test eax, eax
je 0x43170f
mov dword [esi + 0x20c], ebx
cmp ebx, dword [esi + 0x814]
jge 0x43172c
cmp ebx, ebp
jl 0x43172c
mov eax, dword [esi + 0x80c]
je 0x43172e
mov ecx, ebx
mov eax, dword [eax]
dec ecx
jne 0x431725
jmp 0x43172e
xor eax, eax
add eax, 8
lea ecx, [esp + 0x6c]
push eax
push 0x4aa164
push ecx
call fcn.00482ee7
mov eax, dword [eax]
mov edi, dword [esi + 0x13c]
push eax
mov ecx, edi
call fcn.0041f260
cmp eax, ebp
jge 0x43176b
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 0x431771
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 [0x4964a4]
lea ecx, [esp + 0x6c]
mov edi, eax
call fcn.00482c2a
cmp edi, ebp
je 0x4317bc
mov dword [esi + 0x20c], ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00482c2a
mov eax, dword [esi + 0x814]
inc ebx
cmp ebx, eax
jl 0x431666
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x20c]
cmp ecx, eax
je case.0x43110d.4
mov ecx, dword [esi + 0x13c]
push ebp
call fcn.0041f6b0
cmp dword [esi + 0x20c], 0xffffffff
je case.0x43110d.4
push 0x4a8724
mov ecx, esi
call fcn.004408a0
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xac
ret 0xc