Function at 0x416e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [ebp - 0x364]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x364]
mov edx, ebx
push 0
push edx
mov byte [ebp - 0x260], 0
call fcn.004077f0
mov dword [ebp - 0x10], eax
mov al, 0x2f
add esp, 8
cmp byte [ebp - 0x364], al
jne 0x416ee7
mov dword [ebp - 0xc], 1
jmp 0x416ef0
mov al, 0x5c
mov dword [ebp - 0xc], 0
movsx edi, al
lea eax, [ebp - 0x364]
push edi
push eax
call fcn.004077f0
add esp, 8
cmp dword [ebp - 0xc], 0
mov esi, eax
je 0x416f18
push edi
inc esi
push esi
call fcn.004077f0
add esp, 8
mov esi, eax
test esi, esi
je 0x416f25
cmp esi, dword [ebp - 0x10]
jae 0x416f25
mov ebx, esi
jmp 0x416f35
cmp dword [ebp - 0xc], 0
jne 0x416fe3
lea esi, [ebp - 0x364]
cmp esi, dword [ebp - 0x10]
jae 0x416f4f
lea ecx, [esi + 1]
push edi
push ecx
call fcn.004077f0
add esp, 8
test eax, eax
je 0x416f4f
mov esi, eax
jmp 0x416f35
test esi, esi
je 0x416f61
cmp esi, ebx
jbe 0x416f61
cmp esi, dword [ebp - 0x10]
jae 0x416f61
inc esi
mov ebx, esi
jmp 0x416f63
mov esi, ebx
test ebx, ebx
je 0x416f82
cmp esi, dword [ebp - 0x10]
jae 0x416f82
lea edx, [esi + 1]
push 0x2e
push edx
call fcn.004077f0
add esp, 8
test eax, eax
je 0x416f82
mov esi, eax
jmp 0x416f67
mov edi, dword [ebp - 0x10]
cmp esi, ebx
jbe 0x416fb7
cmp esi, edi
jae 0x416fb5
xor edi, edi
cmp ebx, esi
jae 0x416fab
lea ecx, [ebp - 0x260]
mov eax, ebx
sub ecx, ebx
lea ecx, [ecx]
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
inc edi
cmp eax, esi
jb 0x416fa0
mov byte [ebp + edi - 0x260], 0
jmp 0x416fe3
cmp esi, ebx
jne 0x416fe3
xor esi, esi
cmp ebx, edi
jae 0x416fdb
lea ecx, [ebp - 0x260]
mov eax, ebx
sub ecx, ebx
lea esp, [esp]
mov dl, byte [eax]
mov byte [eax + ecx], dl
inc eax
inc esi
cmp eax, edi
jb 0x416fd0
mov byte [ebp + esi - 0x260], 0
lea eax, [ebp - 0x260]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x416ff0
mov ecx, dword [str..gbc]
mov dl, byte [0x428330]
push 0x42822b
mov dword [eax], ecx
push 1
mov byte [eax + 4], dl
lea eax, [ebp - 0x260]
push 1
push eax
call fcn.00421350
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x417035
lea ecx, [ebp - 0x260]
push ecx
push 9
call fcn.004222e0
mov edi, 0x478608
mov dword [0x478770], edi
mov dword [ebp - 0x18], edi
test edi, edi
je 0x41710f
cmp dword [esi], 1
mov edx, dword [esi + 0xc]
push edx
jne 0x417102
push 4
lea eax, [ebp - 0x104]
push 1
push eax
call fcn.00408143
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x78]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x78]
add esp, 0x20
cmp eax, 1
ja 0x41710f
cmp dword [ebp - 0x104], 0
je 0x4170fb
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0xb4]
push 1
push ecx
call fcn.00408143
mov ebx, dword [ebp - 0xb4]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41710f
mov edx, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x78], 1
jbe 0x4170db
push edi
call fcn.0040752f
add esp, 4
jmp 0x41710f
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x18]
push eax
push edi
lea ecx, [ebp - 0x78]
push ecx
push edx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x41710f
mov ecx, dword [esi + 0xc]
push ecx
push eax
jmp 0x417104
push 1
push 1
push edi
call fcn.00408143
add esp, 0x10
mov edi, dword [0x478770]
mov al, byte [edi]
inc edi
mov dword [0x478770], edi
test al, al
jne 0x417040
cmp dword [esi], 1
jne 0x4171ec
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0xf4]
push 1
push edx
call fcn.00408143
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x94]
push 1
push ecx
call fcn.00408143
mov eax, dword [ebp - 0x94]
add esp, 0x20
cmp eax, 4
ja 0x417201
cmp dword [ebp - 0xf4], 0
je 0x4171e3
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0xe8]
push 1
push eax
call fcn.00408143
mov ebx, dword [ebp - 0xe8]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417201
mov ecx, dword [esi + 0xc]
push ecx
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x94], 4
jbe 0x4171bf
push edi
call fcn.0040752f
add esp, 4
jmp 0x417201
mov edx, dword [ebp - 0xe8]
push edx
push edi
lea eax, [ebp - 0x94]
push eax
push 0x4785ec
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417201
mov ecx, dword [esi + 0xc]
push ecx
push eax
push 1
jmp 0x4171f4
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x4785ec
call fcn.00408143
add esp, 0x10
mov edi, dword [0x4785ec]
lea eax, [edi*4]
push eax
call fcn.004075a9
add esp, 4
mov dword [0x4785e4], eax
test eax, eax
jne 0x417242
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0040869d
mov edx, dword [esi + 4]
push edx
call fcn.0040752f
push esi
call fcn.0040752f
add esp, 0xc
push 0xa
call fcn.004222e0
mov dword [ebp - 4], 0
test edi, edi
jle 0x417438
cmp dword [esi], 1
mov eax, dword [esi + 0xc]
push eax
jne 0x417316
push 4
lea ecx, [ebp - 0x12c]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x9c]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x9c]
add esp, 0x20
cmp eax, 4
ja 0x417326
cmp dword [ebp - 0x12c], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x41730d
push 4
lea edx, [ebp - 0xe4]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xe4]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417326
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x9c], 4
jbe 0x4172ea
push edi
call fcn.0040752f
add esp, 4
jmp 0x417326
mov ecx, dword [ebp - 0xe4]
push ecx
push edi
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 8]
push eax
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417326
push eax
push 1
lea edx, [ebp - 8]
push edx
jmp 0x41731e
push 1
push 4
lea ecx, [ebp - 8]
push ecx
call fcn.00408143
add esp, 0x10
mov edi, dword [ebp - 8]
lea edx, [edi + 1]
push edx
call fcn.004075a9
mov ecx, dword [0x4785e4]
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 4
mov dword [ecx + eax*4], ebx
test ebx, ebx
je 0x417220
mov dword [ebp - 0x18], edi
test edi, edi
je 0x417413
cmp dword [esi], 1
jne 0x417403
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0xfc]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x28]
add esp, 0x20
cmp eax, edi
ja 0x417413
cmp dword [ebp - 0xfc], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x4173fe
push 4
lea edx, [ebp - 0x60]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x60]
push eax
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417413
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x60]
push ecx
push edx
push 1
push edi
call fcn.00408143
mov eax, dword [ebp - 0x18]
add esp, 0x10
cmp dword [ebp - 0x28], eax
jbe 0x4173e4
push edi
call fcn.0040752f
add esp, 4
jmp 0x417413
mov ecx, dword [ebp - 0x60]
push ecx
push edi
lea edx, [ebp - 0x28]
push edx
push ebx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417413
push eax
push 1
jmp 0x41740a
mov edx, dword [esi + 0xc]
push edx
push 1
push edi
push ebx
call fcn.00408143
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [0x4785e4]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 8]
mov byte [eax + edx], 0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x4785ec]
jl 0x417251
cmp dword [esi], 1
jne 0x4174ee
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x154]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x80]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x80]
add esp, 0x20
cmp eax, 4
ja 0x417503
cmp dword [ebp - 0x154], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x4174e9
push 4
lea edx, [ebp - 0xac]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xac]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417503
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x80], 4
jbe 0x4174c8
push edi
call fcn.0040752f
add esp, 4
jmp 0x417503
mov ecx, dword [ebp - 0xac]
push ecx
push edi
lea edx, [ebp - 0x80]
push edx
push 0x437638
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417503
push eax
push 1
jmp 0x4174f6
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x437638
call fcn.00408143
add esp, 0x10
cmp dword [0x437638], 0
mov dword [ebp - 4], 0
jle 0x4176f7
cmp dword [esi], 1
mov eax, dword [esi + 0xc]
push eax
jne 0x4175d0
push 4
lea ecx, [ebp - 0xec]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x30]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x30]
add esp, 0x20
cmp eax, 4
ja 0x4175e0
cmp dword [ebp - 0xec], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x4175c7
push 4
lea edx, [ebp - 0xcc]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xcc]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4175e0
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x30], 4
jbe 0x4175a7
push edi
call fcn.0040752f
add esp, 4
jmp 0x4175e0
mov ecx, dword [ebp - 0xcc]
push ecx
push edi
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x4175e0
push eax
push 1
lea edx, [ebp - 8]
push edx
jmp 0x4175d8
push 1
push 4
lea ecx, [ebp - 8]
push ecx
call fcn.00408143
add esp, 0x10
mov edi, dword [ebp - 8]
lea edx, [edi + 1]
push edx
call fcn.004075a9
mov ebx, eax
mov eax, dword [ebp - 4]
shl eax, 4
add esp, 4
mov dword [eax + 0x436640], ebx
test ebx, ebx
je 0x417f7a
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4176d1
cmp dword [esi], 1
jne 0x4176c1
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x134]
push 1
push edx
call fcn.00408143
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x38]
push 1
push ecx
call fcn.00408143
mov eax, dword [ebp - 0x38]
add esp, 0x20
cmp eax, edi
ja 0x4176d1
cmp dword [ebp - 0x134], 0
je 0x4176b8
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x68]
push 1
push eax
call fcn.00408143
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4176d1
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 0x68]
push edx
push eax
push 1
push edi
call fcn.00408143
mov ecx, dword [ebp - 0x18]
add esp, 0x10
cmp dword [ebp - 0x38], ecx
jbe 0x41769e
push edi
call fcn.0040752f
add esp, 4
jmp 0x4176d1
mov edx, dword [ebp - 0x68]
push edx
push edi
lea eax, [ebp - 0x38]
push eax
push ebx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x4176d1
mov ecx, dword [esi + 0xc]
push ecx
push eax
push 1
jmp 0x4176c8
mov edx, dword [esi + 0xc]
push edx
push 1
push edi
push ebx
call fcn.00408143
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
shl eax, 4
mov eax, dword [eax + 0x436640]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x437638]
jl 0x417517
cmp dword [esi], 1
jne 0x4177bd
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x10c]
push 1
push edx
call fcn.00408143
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x90]
push 1
push ecx
call fcn.00408143
mov eax, dword [ebp - 0x90]
add esp, 0x20
cmp eax, 4
ja 0x4177d2
cmp dword [ebp - 0x10c], 0
je 0x4177b4
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0xa0]
push 1
push eax
call fcn.00408143
mov ebx, dword [ebp - 0xa0]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4177d2
mov ecx, dword [esi + 0xc]
push ecx
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x90], 4
jbe 0x417790
push edi
call fcn.0040752f
add esp, 4
jmp 0x4177d2
mov edx, dword [ebp - 0xa0]
push edx
push edi
lea eax, [ebp - 0x90]
push eax
push 0x478710
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x4177d2
mov ecx, dword [esi + 0xc]
push ecx
push eax
push 1
jmp 0x4177c5
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478710
call fcn.00408143
add esp, 0x10
mov eax, dword [0x478710]
test eax, 0x200
je 0x4177f2
sub eax, 0x200
mov dword [0x4785e0], 1
mov dword [0x478710], eax
test eax, eax
je 0x41781d
cmp eax, 1
je 0x41781d
mov eax, dword [esi + 0xc]
push eax
call fcn.0040869d
mov ecx, dword [esi + 4]
push ecx
call fcn.0040752f
push esi
call fcn.0040752f
add esp, 0xc
push 2
jmp 0x41723d
cmp dword [esi], 1
jne 0x4178d7
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x14c]
push 1
push eax
call fcn.00408143
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x40]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x40]
add esp, 0x20
cmp eax, 4
ja 0x4178ec
cmp dword [ebp - 0x14c], 0
je 0x4178ce
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0xdc]
push 1
push ecx
call fcn.00408143
mov ebx, dword [ebp - 0xdc]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4178ec
mov edx, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x40], 4
jbe 0x4178ad
push edi
call fcn.0040752f
add esp, 4
jmp 0x4178ec
mov eax, dword [ebp - 0xdc]
push eax
push edi
lea ecx, [ebp - 0x40]
push ecx
push 0x478714
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x4178ec
mov edx, dword [esi + 0xc]
push edx
push eax
push 1
jmp 0x4178df
mov eax, dword [esi + 0xc]
push eax
push 1
push 4
push 0x478714
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x4179a6
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x114]
push 1
push edx
call fcn.00408143
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x70]
push 1
push ecx
call fcn.00408143
mov eax, dword [ebp - 0x70]
add esp, 0x20
cmp eax, 4
ja 0x4179bb
cmp dword [ebp - 0x114], 0
je 0x41799d
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0xbc]
push 1
push eax
call fcn.00408143
mov ebx, dword [ebp - 0xbc]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4179bb
mov ecx, dword [esi + 0xc]
push ecx
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x70], 4
jbe 0x41797c
push edi
call fcn.0040752f
add esp, 4
jmp 0x4179bb
mov edx, dword [ebp - 0xbc]
push edx
push edi
lea eax, [ebp - 0x70]
push eax
push 0x478718
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x4179bb
mov ecx, dword [esi + 0xc]
push ecx
push eax
push 1
jmp 0x4179ae
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478718
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x417a71
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x13c]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x48]
add esp, 0x20
cmp eax, 4
ja 0x417a86
cmp dword [ebp - 0x13c], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x417a6c
push 4
lea edx, [ebp - 0xd4]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xd4]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417a86
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x48], 4
jbe 0x417a4b
push edi
call fcn.0040752f
add esp, 4
jmp 0x417a86
mov ecx, dword [ebp - 0xd4]
push ecx
push edi
lea edx, [ebp - 0x48]
push edx
push 0x47871c
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417a86
push eax
push 1
jmp 0x417a79
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x47871c
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x417b48
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x11c]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x88]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x88]
add esp, 0x20
cmp eax, 4
ja 0x417b5d
cmp dword [ebp - 0x11c], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x417b43
push 4
lea edx, [ebp - 0xc4]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xc4]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417b5d
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x88], 4
jbe 0x417b1f
push edi
call fcn.0040752f
add esp, 4
jmp 0x417b5d
mov ecx, dword [ebp - 0xc4]
push ecx
push edi
lea edx, [ebp - 0x88]
push edx
push 0x478720
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417b5d
push eax
push 1
jmp 0x417b50
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478720
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x417c13
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x158]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x50]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x50]
add esp, 0x20
cmp eax, 4
ja 0x417c28
cmp dword [ebp - 0x158], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x417c0e
push 4
lea edx, [ebp - 0xa4]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xa4]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417c28
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x50], 4
jbe 0x417bed
push edi
call fcn.0040752f
add esp, 4
jmp 0x417c28
mov ecx, dword [ebp - 0xa4]
push ecx
push edi
lea edx, [ebp - 0x50]
push edx
push 0x478724
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417c28
push eax
push 1
jmp 0x417c1b
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478724
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x417cde
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x124]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x1c]
add esp, 0x20
cmp eax, 4
ja 0x417cf3
cmp dword [ebp - 0x124], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x417cd9
push 4
lea edx, [ebp - 0xa8]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xa8]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417cf3
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x1c], 4
jbe 0x417cb8
push edi
call fcn.0040752f
add esp, 4
jmp 0x417cf3
mov ecx, dword [ebp - 0xa8]
push ecx
push edi
lea edx, [ebp - 0x1c]
push edx
push 0x478728
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417cf3
push eax
push 1
jmp 0x417ce6
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478728
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x417da9
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x144]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x58]
add esp, 0x20
cmp eax, 4
ja 0x417dbe
cmp dword [ebp - 0x144], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x417da4
push 4
lea edx, [ebp - 0xb0]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xb0]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417dbe
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x58], 4
jbe 0x417d83
push edi
call fcn.0040752f
add esp, 4
jmp 0x417dbe
mov ecx, dword [ebp - 0xb0]
push ecx
push edi
lea edx, [ebp - 0x58]
push edx
push 0x47872c
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417dbe
push eax
push 1
jmp 0x417db1
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x47872c
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x417e80
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0xf0]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x98]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x98]
add esp, 0x20
cmp eax, 4
ja 0x417e95
cmp dword [ebp - 0xf0], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x417e7b
push 4
lea edx, [ebp - 0xb8]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xb8]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417e95
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x98], 4
jbe 0x417e57
push edi
call fcn.0040752f
add esp, 4
jmp 0x417e95
mov ecx, dword [ebp - 0xb8]
push ecx
push edi
lea edx, [ebp - 0x98]
push edx
push 0x478730
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417e95
push eax
push 1
jmp 0x417e88
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478730
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
mov eax, dword [esi + 0xc]
push eax
jne 0x417f4e
push 4
lea ecx, [ebp - 0xf8]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x20]
add esp, 0x20
cmp eax, 4
ja 0x417f5e
cmp dword [ebp - 0xf8], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x417f45
push 4
lea edx, [ebp - 0xc0]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xc0]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x417f5e
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x20], 4
jbe 0x417f25
push edi
call fcn.0040752f
add esp, 4
jmp 0x417f5e
mov ecx, dword [ebp - 0xc0]
push ecx
push edi
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 4]
push eax
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x417f5e
push eax
push 1
lea edx, [ebp - 4]
push edx
jmp 0x417f56
push 1
push 4
lea ecx, [ebp - 4]
push ecx
call fcn.00408143
add esp, 0x10
mov edi, dword [ebp - 4]
lea ebx, [edi*4]
push ebx
call fcn.004075a9
add esp, 4
mov dword [0x437634], eax
test eax, eax
jne 0x417f8c
mov edx, dword [esi + 0xc]
push edx
call fcn.0040869d
mov eax, dword [esi + 4]
push eax
jmp 0x41722d
push ebx
call fcn.004075a9
add esp, 4
mov dword [0x438644], eax
test eax, eax
je 0x417220
mov dword [ebp - 0x14], eax
test edi, edi
je 0x418078
cmp dword [esi], 1
jne 0x418065
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x100]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x2c]
lea ebx, [edi*4]
add esp, 0x20
cmp eax, ebx
ja 0x418075
cmp dword [ebp - 0x100], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x41805c
push 4
lea edx, [ebp - 0x24]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x24]
push eax
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x418075
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x24]
push ecx
push edx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x2c], ebx
jbe 0x41803f
push edi
call fcn.0040752f
add esp, 4
jmp 0x418075
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
push eax
push edi
lea ecx, [ebp - 0x2c]
push ecx
push edx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x418075
mov edx, dword [ebp - 0x14]
push eax
push 1
push edx
jmp 0x41806d
mov ecx, dword [esi + 0xc]
push ecx
push edi
push 4
push eax
call fcn.00408143
add esp, 0x10
mov edi, dword [ebp - 4]
lea edx, [edi*4]
push edx
call fcn.004075a9
add esp, 4
mov dword [0x437630], eax
test eax, eax
jne 0x4180a3
mov eax, dword [esi + 0xc]
push eax
call fcn.0040869d
mov ecx, dword [esi + 4]
push ecx
jmp 0x41722d
mov dword [ebp - 0x14], eax
test edi, edi
je 0x418179
cmp dword [esi], 1
jne 0x418169
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00408143
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x3c]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x3c]
lea ebx, [edi*4]
add esp, 0x20
cmp eax, ebx
ja 0x418179
cmp dword [ebp - 0x108], 0
je 0x41815d
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x34]
push 1
push ecx
call fcn.00408143
mov edx, dword [ebp - 0x34]
push edx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x418179
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x34]
push eax
push ecx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x3c], ebx
jbe 0x418140
push edi
call fcn.0040752f
add esp, 4
jmp 0x418179
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x3c]
push eax
push ecx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x418179
mov edx, dword [esi + 0xc]
push edx
push eax
mov eax, dword [ebp - 0x14]
push 1
jmp 0x418170
mov ecx, dword [esi + 0xc]
push ecx
push edi
push 4
push eax
call fcn.00408143
add esp, 0x10
mov edi, dword [0x478720]
lea eax, [edi + 0x20a08]
push eax
mov dword [0x478d58], eax
call fcn.004075a9
add esp, 4
mov dword [0x478774], eax
test eax, eax
jne 0x4181ae
mov edx, dword [esi + 0xc]
push edx
call fcn.0040869d
mov eax, dword [esi + 4]
push eax
jmp 0x41722d
test edi, edi
je 0x41823f
push esi
push 0
push edi
push 1
push eax
call fcn.00420dd0
add esp, 0x14
mov edx, str.7O8uPpHDZlkCk
mov eax, 0x142066bd
call fcn.00422100
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [0x478720], ecx
jle 0x41823f
mov edi, dword [0x478774]
jmp 0x4181f0
mov al, byte [0x430837]
movzx edx, al
mov dl, byte [edx + 0x4307b8]
add dl, al
and dl, 0x7f
mov byte [0x430837], dl
cmp dl, 0x7f
jne 0x418216
xor dl, dl
mov byte [0x430837], dl
movzx edx, dl
movzx ebx, byte [edx + 0x4307b8]
inc al
movzx eax, al
add eax, ebx
xor byte [edi + ecx], al
mov ecx, dword [ebp - 8]
inc ecx
mov byte [edx + 0x4307b8], al
mov dword [ebp - 8], ecx
cmp ecx, dword [0x478720]
jl 0x4181f0
mov edi, dword [0x478724]
test edi, edi
je 0x418283
lea ecx, [edi*4]
push ecx
call fcn.004075a9
add esp, 4
mov dword [0x478738], eax
test eax, eax
jne 0x418274
mov edx, dword [esi + 0xc]
push edx
call fcn.0040869d
mov eax, dword [esi + 4]
push eax
jmp 0x41722d
push esi
push 0
push edi
push 4
push eax
call fcn.00420dd0
add esp, 0x14
mov edi, dword [0x478728]
test edi, edi
je 0x4182c7
lea ecx, [edi*4]
push ecx
call fcn.004075a9
add esp, 4
mov dword [0x478600], eax
test eax, eax
jne 0x4182b8
mov edx, dword [esi + 0xc]
push edx
call fcn.0040869d
mov eax, dword [esi + 4]
push eax
jmp 0x41722d
push esi
push 0
push edi
push 4
push eax
call fcn.00420dd0
add esp, 0x14
mov edi, dword [0x47872c]
test edi, edi
je 0x4182fc
push edi
mov dword [0x478d5c], edi
call fcn.004075a9
add esp, 4
mov dword [0x4785f8], eax
test eax, eax
je 0x417220
push esi
push 0
push edi
push 1
push eax
call fcn.00420dd0
add esp, 0x14
mov edi, dword [0x478714]
mov eax, dword [0x478730]
lea edi, [edi + edi*2 + 3]
add edi, edi
add edi, edi
push edi
mov dword [0x478d60], eax
call fcn.004075a9
add esp, 4
mov dword [0x4785fc], eax
test eax, eax
je 0x417220
push edi
push 0
push eax
call fcn.00409220
add esp, 0xc
cmp dword [0x478714], 0
mov dword [ebp - 4], 0
jl 0x4188b5
lea ebx, [ebx]
cmp dword [esi], 1
mov eax, dword [esi + 0xc]
push eax
jne 0x418409
push 4
lea ecx, [ebp - 0x110]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x44]
add esp, 0x20
cmp eax, 4
ja 0x418419
cmp dword [ebp - 0x110], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x418400
push 4
lea edx, [ebp - 0xc8]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xc8]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x418419
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x44], 4
jbe 0x4183e0
push edi
call fcn.0040752f
add esp, 4
jmp 0x418419
mov ecx, dword [ebp - 0xc8]
push ecx
push edi
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x10]
push eax
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x418419
push eax
push 1
lea edx, [ebp - 0x10]
push edx
jmp 0x418411
push 1
push 4
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408143
add esp, 0x10
mov eax, dword [ebp - 4]
mov edi, dword [0x4785fc]
lea edx, [eax + eax*2]
mov eax, dword [ebp - 0x10]
mov dword [edi + edx*4], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 4
push ecx
call fcn.004075a9
mov ecx, dword [ebp - 4]
lea edx, [ecx + ecx*2]
mov dword [edi + edx*4 + 4], eax
mov eax, dword [ebp - 4]
lea eax, [eax + eax*2]
mov edi, dword [edi + eax*4 + 4]
xor ebx, ebx
add esp, 4
cmp edi, ebx
je 0x418091
mov ecx, dword [ebp - 0x10]
shl ecx, 4
push ecx
push ebx
push edi
call fcn.00409220
add esp, 0xc
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x10], ebx
jle 0x4187c1
mov dword [ebp - 0xc], ebx
jmp 0x418480
mov eax, dword [ebp - 4]
lea edx, [eax + eax*2]
mov eax, dword [0x4785fc]
mov ecx, dword [eax + edx*4 + 4]
mov edx, dword [ebp - 0xc]
lea ebx, [ecx + edx + 4]
test ebx, ebx
je 0x41855b
cmp dword [esi], 1
mov eax, dword [esi + 0xc]
push eax
jne 0x41854e
push 4
lea ecx, [ebp - 0x118]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x54]
add esp, 0x20
cmp eax, 4
ja 0x41855b
cmp dword [ebp - 0x118], 0
je 0x418545
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x4c]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41855b
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x4c]
push ecx
push edx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x54], 4
jbe 0x41852b
push edi
call fcn.0040752f
add esp, 4
jmp 0x41855b
mov eax, dword [ebp - 0x4c]
push eax
push edi
lea ecx, [ebp - 0x54]
push ecx
push ebx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x41855b
mov edx, dword [esi + 0xc]
push edx
push eax
push 1
jmp 0x418552
push 1
push 4
push ebx
call fcn.00408143
add esp, 0x10
mov eax, dword [ebp - 4]
mov ebx, dword [0x4785fc]
lea ecx, [eax + eax*2]
mov edi, dword [ebx + ecx*4 + 4]
add edi, dword [ebp - 0xc]
mov eax, dword [edi + 4]
test eax, eax
je 0x41866a
push eax
call fcn.004075a9
mov dword [edi], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + eax*2]
mov edx, dword [ebx + ecx*4 + 4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + edx]
add esp, 4
test ebx, ebx
je 0x417f7a
mov edi, dword [eax + edx + 4]
mov dword [ebp - 0x18], edi
test edi, edi
je 0x41866a
cmp dword [esi], 1
jne 0x41865a
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x120]
push 1
push edx
call fcn.00408143
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x64]
push 1
push ecx
call fcn.00408143
mov eax, dword [ebp - 0x64]
add esp, 0x20
cmp eax, edi
ja 0x41866a
cmp dword [ebp - 0x120], 0
je 0x418653
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x5c]
push 1
push eax
call fcn.00408143
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41866a
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 0x5c]
push edx
push eax
push 1
push edi
call fcn.00408143
mov ecx, dword [ebp - 0x18]
add esp, 0x10
cmp dword [ebp - 0x64], ecx
jbe 0x418639
push edi
call fcn.0040752f
add esp, 4
jmp 0x41866a
mov edx, dword [ebp - 0x5c]
push edx
push edi
lea eax, [ebp - 0x64]
push eax
push ebx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x41866a
mov ecx, dword [esi + 0xc]
push ecx
push eax
jmp 0x41865f
mov edx, dword [esi + 0xc]
push edx
push edi
push 1
push ebx
call fcn.00408143
add esp, 0x10
mov eax, dword [ebp - 4]
test eax, eax
jle 0x4187ad
mov ecx, dword [0x4785fc]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 4]
mov eax, dword [ebp - 0xc]
lea ebx, [edx + eax + 0xc]
test ebx, ebx
je 0x418752
cmp dword [esi], 1
jne 0x418741
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x128]
push 1
push edx
call fcn.00408143
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x74]
push 1
push ecx
call fcn.00408143
mov eax, dword [ebp - 0x74]
add esp, 0x20
cmp eax, 4
ja 0x418752
cmp dword [ebp - 0x128], 0
je 0x418738
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.00408143
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x418752
mov edx, dword [esi + 0xc]
mov eax, dword [ebp - 0x6c]
push edx
push eax
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x74], 4
jbe 0x41871e
push edi
call fcn.0040752f
add esp, 4
jmp 0x418752
mov ecx, dword [ebp - 0x6c]
push ecx
push edi
lea edx, [ebp - 0x74]
push edx
push ebx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x418752
mov ecx, dword [esi + 0xc]
push ecx
push eax
push 1
jmp 0x418749
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push ebx
call fcn.00408143
add esp, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [0x4785fc]
mov ebx, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov edi, dword [ecx + eax*4 + 4]
mov eax, dword [edi + ebx + 0xc]
test eax, eax
je 0x4187ad
add eax, eax
add eax, eax
push eax
call fcn.004075a9
mov edx, dword [0x4785fc]
mov dword [edi + ebx + 8], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*4 + 4]
mov ecx, dword [eax + ebx + 8]
add esp, 4
test ecx, ecx
je 0x417220
mov edx, dword [eax + ebx + 0xc]
push esi
push 0
push edx
push 4
push ecx
call fcn.00420dd0
add esp, 0x14
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x10
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jl 0x418480
mov eax, dword [ebp - 4]
mov ecx, dword [0x4785fc]
lea eax, [eax + eax*2]
lea ebx, [ecx + eax*4 + 8]
test ebx, ebx
je 0x4188a2
cmp dword [esi], 1
mov edx, dword [esi + 0xc]
push edx
jne 0x418895
push 4
lea eax, [ebp - 0x130]
push 1
push eax
call fcn.00408143
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x84]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x84]
add esp, 0x20
cmp eax, 4
ja 0x4188a2
cmp dword [ebp - 0x130], 0
je 0x41888c
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x7c]
push 1
push ecx
call fcn.00408143
mov edx, dword [ebp - 0x7c]
push edx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4188a2
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x7c]
push eax
push ecx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x84], 4
jbe 0x41886f
push edi
call fcn.0040752f
add esp, 4
jmp 0x4188a2
mov edx, dword [ebp - 0x7c]
push edx
push edi
lea eax, [ebp - 0x84]
push eax
push ebx
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x4188a2
mov ecx, dword [esi + 0xc]
push ecx
push eax
push 1
jmp 0x418899
push 1
push 4
push ebx
call fcn.00408143
add esp, 0x10
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x478714]
jle 0x418350
cmp dword [esi], 1
jne 0x41896b
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x138]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0xc]
add esp, 0x20
cmp eax, 4
ja 0x418980
cmp dword [ebp - 0x138], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x418966
push 4
lea edx, [ebp - 0xd0]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xd0]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x418980
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0xc], 4
jbe 0x418945
push edi
call fcn.0040752f
add esp, 4
jmp 0x418980
mov ecx, dword [ebp - 0xd0]
push ecx
push edi
lea edx, [ebp - 0xc]
push edx
push 0x478d04
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x418980
push eax
push 1
jmp 0x418973
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478d04
call fcn.00408143
add esp, 0x10
cmp dword [esi], 1
jne 0x418a42
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0x140]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x8c]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp - 0x8c]
add esp, 0x20
cmp eax, 4
ja 0x418a57
cmp dword [ebp - 0x140], 0
mov ecx, dword [esi + 0xc]
push ecx
je 0x418a3d
push 4
lea edx, [ebp - 0xd8]
push 1
push edx
call fcn.00408143
mov ebx, dword [ebp - 0xd8]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x418a57
mov eax, dword [esi + 0xc]
push eax
push ebx
push 1
push edi
call fcn.00408143
add esp, 0x10
cmp dword [ebp - 0x8c], 4
jbe 0x418a19
push edi
call fcn.0040752f
add esp, 4
jmp 0x418a57
mov ecx, dword [ebp - 0xd8]
push ecx
push edi
lea edx, [ebp - 0x8c]
push edx
push 0x478d0c
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x418a57
push eax
push 1
jmp 0x418a4a
mov edx, dword [esi + 0xc]
push edx
push 1
push 4
push 0x478d0c
call fcn.00408143
add esp, 0x10
mov edi, dword [0x478d0c]
push edi
call fcn.004075a9
add esp, 4
mov dword [0x4785f0], eax
test eax, eax
jne 0x418a81
mov eax, dword [esi + 0xc]
push eax
call fcn.0040869d
mov ecx, dword [esi + 4]
push ecx
jmp 0x41722d
mov ebx, edi
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x418b65
cmp dword [esi], 1
jne 0x418b55
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 0x148]
push 1
push eax
call fcn.00408143
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp - 0x14]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp - 0x14]
add esp, 0x20
cmp eax, ebx
ja 0x418b65
cmp dword [ebp - 0x148], 0
je 0x418b48
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 0xe0]
push 1
push ecx
call fcn.00408143
mov ebx, dword [ebp - 0xe0]
push ebx
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x418b65
mov edx, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call fcn.00408143
mov eax, dword [ebp - 0x150]
add esp, 0x10
cmp dword [ebp - 0x14], eax
jbe 0x418b28
push edi
call fcn.0040752f
add esp, 4
jmp 0x418b65
mov ecx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0x18]
push ecx
push edi
lea edx, [ebp - 0x14]
push edx
push eax
call section..text
push edi
call fcn.0040752f
add esp, 4
jmp 0x418b65
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x18]
push ecx
push eax
push 1
push edx
jmp 0x418b5d
mov ecx, dword [esi + 0xc]
push ecx
push edi
push 1
push eax
call fcn.00408143
add esp, 0x10
mov edx, dword [esi + 0xc]
push edx
call fcn.0040869d
mov eax, dword [esi + 4]
push eax
call fcn.0040752f
push esi
call fcn.0040752f
mov ecx, dword [0x478720]
add esp, 0xc
test ecx, ecx
je 0x418b8f
add ecx, 4
jmp 0x418b91
xor ecx, ecx
mov esi, dword [0x478774]
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edx, 0xdad00402
jmp 0x418bb0
lea edi, [esi + ecx]
mov dword [eax*4 + 0x4348c8], edi
mov dword [esi + ecx - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc eax
add ecx, 0x104
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp eax, 0x202
jl 0x418bb0
mov ecx, dword [0x478724]
mov dword [0x4350d4], 0
test ecx, ecx
je 0x418c27
mov edi, dword [0x478738]
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
jle 0x418c1e
mov edx, dword [0x4785f8]
mov eax, dword [edi + eax*4]
mov ecx, dword [edx + eax]
mov dword [ebp - 8], ecx
add ecx, esi
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [0x478724]
jl 0x418c01
push edi
call fcn.0040752f
add esp, 4
mov ecx, dword [0x478728]
test ecx, ecx
je 0x418c8e
mov edi, dword [0x478600]
xor eax, eax
mov dword [ebp - 4], eax
test ecx, ecx
jle 0x418c85
mov ebx, dword [0x478d60]
mov edx, dword [edi + eax*4]
mov eax, dword [edi + eax*4 + 4]
cmp eax, ebx
jl 0x418c53
sub eax, ebx
mov ecx, eax
mov eax, dword [0x4785fc]
lea edx, [edx + edx*2]
lea eax, [eax + edx*4 + 4]
mov edx, dword [eax]
mov edx, dword [edx]
mov edx, dword [ecx + edx]
mov dword [ebp - 8], edx
mov eax, dword [eax]
mov eax, dword [eax]
add edx, esi
mov dword [ecx + eax], edx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
cmp eax, dword [0x478728]
jl 0x418c46
push edi
call fcn.0040752f
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret