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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push esi
push edi
lea edi, [ebp - 0x110]
mov ecx, 0x44
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x9c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040119f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40890a
jmp 0x409495
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax + 8]
mov byte [edx + 0x8c], cl
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x8c]
test eax, eax
je 0x4089a5
mov ecx, dword [ebp - 0x1c]
add ecx, 0xc
mov edx, dword [ebp + 8]
add edx, 0x90
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 0x20]
mov edx, dword [ebp + 8]
mov dword [edx + 0xa0], eax
mov dword [edx + 0xa4], ecx
mov eax, dword [ebp + 8]
add eax, 0x90
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x30]
push eax
call fcn.00401537
add esp, 4
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xa0
push edx
call fcn.004011b8
add esp, 8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x28]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0x10c], ecx
cmp dword [ebp - 0x10c], 0x636f6d70
je 0x408dff
cmp dword [ebp - 0x10c], 0x6f75746c
je 0x4089ea
jmp 0x4091d6
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x8c]
test eax, eax
je 0x408a1b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa0]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x6c
push edx
call fcn.00401118
add esp, 0xc
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x6e]
add ecx, 4
je 0x408a4a
mov edx, dword [ebp - 0xc]
movsx eax, word [edx + 0x16]
mov ecx, dword [ebp - 0xc]
movsx edx, word [ecx + 0x3a]
add eax, edx
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6e]
lea eax, [eax + edx + 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 4]
ja 0x408a82
mov edx, dword [ebp - 0x18]
movsx eax, word [edx + 0x6c]
test eax, eax
je 0x408a76
mov ecx, dword [ebp - 0xc]
movsx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0xc]
movsx ecx, word [eax + 0x38]
add edx, ecx
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x6c]
add edx, ecx
mov eax, dword [ebp - 0xc]
cmp edx, dword [eax + 8]
ja 0x408a82
mov dword [ebp - 0x110], 0
jmp 0x408aa7
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6c]
push edx
mov eax, dword [ebp - 0x18]
movsx ecx, word [eax + 0x6e]
add ecx, 4
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004010a5
add esp, 0xc
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408abb
jmp 0x409495
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6e]
shl edx, 3
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x70]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x3c]
push eax
call sub.MSVCR90D.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6c]
shl edx, 1
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x78]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x44]
push eax
call sub.MSVCR90D.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x18]
movsx edx, word [ecx + 0x6e]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x74]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x40]
push eax
call sub.MSVCR90D.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov ax, word [edx + 0x6e]
mov word [ecx + 0x3a], ax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov ax, word [edx + 0x6c]
mov word [ecx + 0x38], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov dword [ecx + 0xa8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0xac], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.00401325
add esp, 8
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0xb4], ecx
mov edx, dword [ebp - 0x18]
movsx eax, word [edx + 0x6e]
test eax, eax
jne 0x408b98
jmp 0x4091dd
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
cmp dword [edx + 0x1c], 0
je 0x408bc8
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x38
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0xc
cmp esi, esp
call fcn.0047a500
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 1
je 0x408d7a
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xc]
imul edx, edx, 0x30
mov eax, dword [ebp - 0x50]
lea ecx, [eax + edx - 0x30]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x4c]
cmp dword [edx + 0xc], 1
jle 0x408d12
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x68]
and ecx, 4
jne 0x408d12
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x54]
mov ecx, dword [edx + 0xb0]
sub ecx, dword [eax + 4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 8]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x3c], 0x18
jge 0x408c5e
mov eax, dword [ebp - 0x44]
sub eax, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x38], 0x18
jge 0x408c6d
mov ecx, dword [ebp - 0x48]
add ecx, 8
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x44]
add edx, 0x20
and edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax + 0xa8], edx
mov ecx, dword [ebp - 0x48]
add ecx, 0x20
and ecx, 0xffffffc0
mov edx, dword [ebp + 8]
mov dword [edx + 0xb0], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa8]
cmp ecx, dword [ebp - 0x40]
jl 0x408cba
cmp dword [ebp - 0x3c], 0
jle 0x408cba
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
sub eax, 0x40
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x54]
mov ecx, dword [edx + 0xb0]
cmp ecx, dword [eax + 8]
jg 0x408ce6
cmp dword [ebp - 0x38], 0
jle 0x408ce6
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb0]
add eax, 0x40
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x90], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb0]
sub eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x94], eax
jmp 0x408d78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa8]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb0]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x58]
add eax, 0x20
and eax, 0xffffffc0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa8], eax
mov edx, dword [ebp - 0x5c]
add edx, 0x20
and edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax + 0xb0], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
sub edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x90], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb0]
sub edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x94], edx
jmp 0x408dee
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb0]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x74]
mov ecx, dword [ebp - 0x60]
lea edx, [ecx + eax + 0x20]
and edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax + 0xa8], edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x78]
mov eax, dword [ebp - 0x64]
lea ecx, [eax + edx + 0x20]
and ecx, 0xffffffc0
mov edx, dword [ebp + 8]
mov dword [edx + 0xb0], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa8]
sub ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x90], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb0]
sub ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x94], ecx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040122b
add esp, 4
jmp 0x4091dd
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x80]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0xc]
movsx ecx, word [eax + 0x16]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040136b
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408e33
jmp 0x409495
mov ecx, dword [ebp - 0x6c]
shl ecx, 5
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x84]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x58]
push edx
call sub.MSVCR90D.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 0x54], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], 0
jmp 0x408e77
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
cmp edx, dword [ebp - 0x6c]
jae 0x4091d4
mov eax, dword [ebp - 0x70]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x34]
add edx, eax
mov eax, dword [ebp - 0x68]
shl eax, 5
add edx, eax
mov dword [ebp - 0x78], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
mov eax, dword [ecx + 0xac]
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb0]
mov eax, dword [ecx + 0xb4]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0xc]
movsx edx, word [ecx + 0x16]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp + 0x18]
add eax, 1
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408890
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408f0b
jmp 0x409495
mov eax, dword [ebp - 0x70]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x34]
add edx, eax
mov eax, dword [ebp - 0x68]
shl eax, 5
add edx, eax
mov dword [ebp - 0x78], edx
mov ecx, dword [ebp - 0x78]
movzx edx, word [ecx + 4]
and edx, 0x200
je 0x408f68
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa8]
mov edx, dword [eax + 0xac]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb0]
mov edx, dword [eax + 0xb4]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], edx
jmp 0x408f9b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0xa8], ecx
mov edx, dword [ebp - 0x80]
mov dword [eax + 0xac], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x94]
mov dword [eax + 0xb0], ecx
mov edx, dword [ebp - 0x90]
mov dword [eax + 0xb4], edx
mov eax, dword [ebp - 0xc]
movsx ecx, word [eax + 0x16]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
sub edx, dword [ebp - 0xac]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 4]
and ecx, 0xc8
je 0x40902a
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0xac]
lea edx, [eax + ecx*8]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xb0]
lea edx, [ecx + eax*8]
mov dword [ebp - 0xb4], edx
jmp 0x409004
mov eax, dword [ebp - 0xb0]
add eax, 8
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [ebp - 0xb4]
jae 0x40902a
mov edx, dword [ebp - 0x78]
add edx, 0x10
push edx
mov eax, dword [ebp - 0xb0]
push eax
call fcn.004011b8
add esp, 8
jmp 0x408ff5
mov ecx, dword [ebp - 0x78]
movzx edx, word [ecx + 4]
and edx, 2
jne 0x4090f5
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 8]
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x74]
add ecx, dword [ebp - 0xb8]
cmp ecx, dword [ebp - 0xac]
jae 0x409071
mov edx, dword [ebp - 0xbc]
cmp edx, dword [ebp - 0xa8]
jb 0x40907d
mov dword [ebp - 4], 0x15
jmp 0x409495
mov eax, dword [ebp - 0xbc]
add eax, dword [ebp - 0xac]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x74]
lea ecx, [edx + eax*8]
mov edx, dword [ebp - 0xb8]
lea eax, [ecx + edx*8]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x74]
lea ecx, [edx + eax*8]
mov edx, dword [ebp - 0xbc]
lea eax, [ecx + edx*8]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc4]
mov eax, dword [ecx]
sub eax, dword [edx]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xc4]
mov eax, dword [ecx + 4]
sub eax, dword [edx + 4]
mov dword [ebp - 0xa0], eax
jmp 0x40915d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 8]
push ecx
call fcn.00401325
add esp, 8
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 8]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0xc]
push eax
call fcn.00401325
add esp, 8
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x10]
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0x9c]
add edx, 0x20
and edx, 0xffffffc0
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0xa0]
add eax, 0x20
and eax, 0xffffffc0
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x14
mov edx, dword [ecx]
mov dword [ebp - 0xdc], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0xd8], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0xd4], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xd0], eax
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xd8]
lea ecx, [eax + edx*8]
mov dword [ebp - 0xd8], ecx
mov dx, word [ebp - 0xa8]
mov word [ebp - 0xda], dx
mov eax, dword [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.00401118
add esp, 0xc
jmp 0x408e6e
jmp 0x4091dd
mov dword [ebp - 4], 7
cmp dword [ebp + 0x18], 0
jne 0x409495
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x2c]
sub edx, dword [ecx + 0x20]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + 0x30]
sub edx, dword [ecx + 0x24]
mov dword [ebp - 0x100], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x104]
push edx
call fcn.00401325
add esp, 8
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x100]
push edx
call fcn.00401325
add esp, 8
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x8c]
test ecx, ecx
je 0x409283
mov edx, dword [ebp + 8]
add edx, 0x90
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.004011c2
add esp, 8
mov ecx, dword [ebp + 8]
add ecx, 0x90
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.004011b8
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa8], 0
je 0x4092ac
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
neg edx
push edx
mov eax, dword [ebp - 0xc]
add eax, 0x14
push eax
call fcn.00401118
add esp, 0xc
lea ecx, [ebp - 0xf4]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x14
push edx
call fcn.0040149c
add esp, 8
mov eax, dword [ebp - 0xf4]
and eax, 0xffffffc0
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0xf0]
and ecx, 0xffffffc0
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xec]
add edx, 0x3f
and edx, 0xffffffc0
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xe8]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xec]
sub ecx, dword [ebp - 0xf4]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 0xe8]
sub eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xf4]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xe8]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0xf4]
add eax, dword [ebp - 0x104]
and eax, 0xffffffc0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0xe8]
add edx, dword [ebp - 0x100]
and edx, 0xffffffc0
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
and eax, 4
jne 0x40939d
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.00409530
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4093d5
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x20]
test eax, eax
je 0x4093d5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x28]
push ecx
call fcn.00401325
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x90], 0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x94], 0
jmp 0x4093f6
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x28], 0
je 0x4093f6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0xb0]
sub edx, dword [ecx + 0xa8]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x34]
push ecx
call fcn.00401325
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x28]
add ecx, 0x20
and ecx, 0xffffffc0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x34]
add ecx, 0x20
and ecx, 0xffffffc0
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call fcn.0040152d
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call fcn.00401505
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409461
jmp 0x409495
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
add eax, 0x14
mov ecx, dword [ebp - 0x18]
add ecx, 0x6c
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x48], 0x6f75746c
mov eax, dword [ebp - 4]
push edx
mov ecx, ebp
push eax
lea edx, [0x4094bc]
call fcn.0047a530
pop eax
pop edx
pop edi
pop esi
add esp, 0x110
cmp ebp, esp
call fcn.0047a500
mov esp, ebp
pop ebp
ret