Function at 0x41741b
Capabilities:
Load assembly via iassembly

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x2c4
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x7e], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, 2
jne 0x417757
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 0x1c]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
js 0x417748
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x1c]
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call ecx
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
js 0x4179e0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x88]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call ecx
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x84]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call ecx
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x88]
sub edx, eax
mov eax, edx
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4176c1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0xc
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x40c]
test al, al
je 0x417637
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x40c]
lea eax, [ebp - 0x28a]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00416751
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x68]
lea eax, [ebp - 0x290]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28a]
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x58], 0x2008
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
mov edx, dword [ebp - 0x290]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 8
call eax
sub esp, 0xc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x7c], 0
jmp 0x417628
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x74]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 0x7c]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov eax, dword [eax]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], edx
lea edx, [ebp - 0x7c]
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
sub esp, 0xc
mov eax, dword [ebp - 0x7c]
add eax, 1
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x290]
cmp eax, edx
jb 0x4175df
jmp 0x41769b
mov word [ebp - 0x58], 0x2008
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 8
call eax
sub esp, 0xc
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x74]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x7e]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], edx
lea edx, [ebp - 0x7c]
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
sub esp, 0xc
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x74]
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
sub esp, 0xc
mov word [ebp - 0x68], 1
mov dword [ebp - 0x60], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x94]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x1c]
lea edx, [ebp - 0x78]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x68]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x64]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x60]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call ecx
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x4179e0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
sub esp, 4
jmp 0x4179e0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x1c], 0
jmp 0x4179e0
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x20c]
lea eax, [ebp - 0x28a]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00416751
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x28a]
mov dword [esp], eax
call edx
sub esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4177a3
mov eax, 0
jmp 0x4179e5
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x30c]
lea eax, [ebp - 0x28a]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00416751
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
lea eax, [ebp - 0x28a]
mov dword [esp], eax
call edx
sub esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4179cc
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x44]
mov eax, dword [ebp + 0x10]
lea edx, [eax + 0x18]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call ecx
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
js 0x4179b8
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x40c]
test al, al
je 0x41793b
mov eax, dword [ebp + 0xc]
lea edx, [eax + 0x40c]
lea eax, [ebp - 0x28a]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00416751
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x68]
lea eax, [ebp - 0x290]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28a]
mov dword [esp], eax
call edx
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
mov edx, dword [ebp - 0x290]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0xc
call eax
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41793b
mov dword [ebp - 0x7c], 0
jmp 0x41792a
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 0x7c]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov eax, dword [eax]
mov dword [esp], eax
call edx
sub esp, 4
mov dword [ebp - 0x30], eax
mov word [ebp - 0x38], 8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x74]
lea eax, [ebp - 0x38]
mov dword [esp + 8], eax
lea eax, [ebp - 0x7c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x417921
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
sub esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x7c]
add eax, 1
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x290]
cmp eax, edx
jb 0x4178b6
cmp dword [ebp - 0x10], 0
js 0x4179b8
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax + 0xe4]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x18]
lea edx, [ebp - 0x48]
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x68]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x64]
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x60]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x118
mov edx, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call ecx
sub esp, 0x28
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x4179b8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x78]
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call edx
sub esp, 4
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret