Function at 0x415e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
push edi
mov dword [ebp - 0x7c], ecx
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x4165e8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
sub edx, 1
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x80], 0x14
ja case.default.0x415e9b
mov eax, dword [ebp - 0x80]
jmp dword [eax*4 + 0x4165fc]
jmp 0x416578
push 0x100
push 1
call fcn.00416650
add esp, 8
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x438]
push edx
call fcn.00413870
add esp, 8
cmp eax, 1
jne 0x415ed4
mov byte [ebp - 1], 1
jmp 0x415f33
push 0x100
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413870
add esp, 8
test eax, eax
jne 0x415f08
mov edx, dword [ebp - 0x7c]
add edx, 0x418
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00413640
movzx eax, al
test eax, eax
je 0x415f33
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
call fcn.004154e0
mov ecx, eax
call fcn.004145b0
movsx ecx, byte [eax]
xor edx, edx
cmp ecx, 0xa
setne dl
mov byte [ebp - 1], dl
jmp 0x416578
push 2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413870
add esp, 8
test eax, eax
jne 0x415f79
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00413640
movzx eax, al
test eax, eax
je 0x415f7d
mov ecx, dword [ebp - 0x7c]
call fcn.004145b0
movsx ecx, byte [eax]
cmp ecx, 0xa
je 0x415f7d
mov byte [ebp - 1], 1
jmp 0x416578
push 4
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x438]
push eax
call fcn.00413870
add esp, 8
test eax, eax
je 0x415fb3
mov ecx, dword [ebp - 0x7c]
add ecx, 0x418
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00413670
movzx edx, al
test edx, edx
jne 0x415fe4
push 8
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413870
add esp, 8
test eax, eax
je 0x415fea
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00413670
movzx eax, al
test eax, eax
je 0x415fea
mov byte [ebp - 0xe], 0
jmp 0x416022
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00417a80
movzx esi, al
push 0
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00417a80
movzx ecx, al
xor edx, edx
cmp esi, ecx
setne dl
mov byte [ebp - 0xe], dl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
and ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xe]
movzx eax, byte [ebp - 0xd]
cmp edx, eax
jne 0x416044
mov byte [ebp - 1], 1
jmp 0x416578
mov ecx, dword [ebp - 0x7c]
add ecx, 0x420
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00413670
movzx edx, al
test edx, edx
jne 0x416082
mov ecx, dword [ebp - 0x7c]
call fcn.004145b0
movsx eax, byte [eax]
cmp eax, 0xa
je 0x416082
mov ecx, dword [ebp - 0x7c]
call fcn.004145b0
movsx ecx, byte [eax]
cmp ecx, 0xd
jne 0x416088
mov byte [ebp - 1], 1
jmp 0x416090
mov ecx, dword [ebp - 0x7c]
call fcn.004135e0
jmp 0x416578
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.00412120
push 0x80
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413870
add esp, 8
test eax, eax
setne dl
movzx eax, dl
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x434]
push edx
mov eax, dword [ebp - 0x7c]
add eax, 0x440
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004155c0
mov esi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.0043f220
add esi, eax
push esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004155c0
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x424]
push edx
mov eax, dword [ecx + 0x420]
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00416660
add esp, 0x28
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00413640
movzx edx, al
test edx, edx
je 0x416152
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 4], edx
jmp 0x416156
mov byte [ebp - 1], 1
jmp 0x416578
mov eax, dword [ebp - 0x7c]
add eax, 0x420
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00413670
movzx ecx, al
test ecx, ecx
jne 0x416192
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00417b60
movzx eax, al
test eax, eax
je 0x416192
mov dword [ebp - 0x84], 0
jmp 0x41619c
mov dword [ebp - 0x84], 1
mov cl, byte [ebp - 0x84]
mov byte [ebp - 1], cl
jmp 0x416578
jmp 0x416578
jmp 0x416578
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [edx + 4], 0xb
sete al
mov byte [ebp - 0x1d], al
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00415e60
movzx ecx, al
neg ecx
sbb ecx, ecx
neg ecx
movzx edx, byte [ebp - 0x1d]
cmp ecx, edx
jne 0x416217
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00417690
mov byte [ebp - 1], 1
jmp 0x416225
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
jmp 0x416578
mov dword [ebp + 8], 0
jmp 0x416578
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x38]
mov edx, dword [edx + 0x14]
shl edx, 4
mov esi, dword [ebp - 0x7c]
mov dword [esi + edx + 0xc], eax
mov dword [esi + edx + 0x10], ecx
jmp 0x416578
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x7c]
movzx ecx, byte [eax + 0x43d]
test ecx, ecx
jne 0x416283
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x14], 0
je 0x4162b8
mov eax, dword [ebp - 0x3c]
mov edx, 1
mov ecx, dword [eax + 0x14]
shl edx, cl
mov eax, dword [ebp - 0x7c]
or edx, dword [eax + 8]
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx + 0x14]
shl edx, 4
mov esi, dword [ebp - 0x7c]
mov dword [esi + edx + 0x14], eax
mov dword [esi + edx + 0x18], ecx
jmp 0x416578
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, 1
mov ecx, dword [ecx + 0x14]
shl edx, cl
mov eax, dword [ebp - 0x7c]
and edx, dword [eax + 8]
je 0x4163d2
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x14]
shl edx, 4
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + edx + 0xc]
mov edx, dword [eax + edx + 0x10]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + ecx + 0x14]
mov ecx, dword [edx + ecx + 0x18]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00413640
movzx eax, al
test eax, eax
je 0x4163c4
push 0x80
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x438]
push edx
call fcn.00413870
add esp, 8
test eax, eax
setne al
movzx ecx, al
push ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x434]
push eax
mov ecx, dword [ebp - 0x7c]
add ecx, 0x440
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x424]
push ecx
mov edx, dword [eax + 0x420]
push edx
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00417f60
add esp, 0x30
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00413670
movzx ecx, al
test ecx, ecx
je 0x4163c4
mov byte [ebp - 1], 1
jmp 0x4163d2
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x54]
mov dword [edx], eax
mov ecx, dword [ebp - 0x50]
mov dword [edx + 4], ecx
jmp 0x416578
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.004176f0
movzx eax, al
test eax, eax
jne 0x4163f0
mov byte [ebp - 1], 1
jmp 0x4163f7
mov dword [ebp + 8], 0
jmp 0x416578
jmp 0x416578
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
and edx, 2
setne al
movzx ecx, al
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.004177b0
movzx eax, al
test eax, eax
jne 0x41642a
mov byte [ebp - 1], 1
jmp 0x416431
mov dword [ebp + 8], 0
jmp 0x416578
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x448]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 0x14]
je 0x416461
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x60], edx
jmp 0x416448
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
je 0x416483
mov edx, dword [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.00413670
movzx eax, al
test eax, eax
je 0x41648c
mov dword [ebp + 8], 0
jmp 0x4164a3
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x64]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x60]
mov byte [edx + 8], 1
jmp 0x416578
jmp 0x416578
push 0x2000
push 0x20
call fcn.00416650
add esp, 8
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413870
add esp, 8
test eax, eax
je 0x4164ec
mov edx, dword [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x7c]
add ecx, 0x418
call fcn.00413670
movzx eax, al
test eax, eax
jne 0x416512
mov ecx, dword [ebp - 0x7c]
movzx edx, byte [ecx + 0x444]
test edx, edx
je 0x416518
mov eax, dword [ebp - 0x7c]
add eax, 0x420
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00413640
movzx ecx, al
test ecx, ecx
je 0x416518
mov byte [ebp - 1], 1
jmp 0x416552
mov edx, dword [ebp - 0x7c]
movzx eax, byte [edx + 0x43c]
test eax, eax
je 0x416535
mov ecx, dword [ebp - 0x7c]
call fcn.00417dc0
movzx ecx, al
test ecx, ecx
je 0x416552
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x7c]
add edi, 0x20c
mov ecx, 0x83
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x7c]
mov byte [edx + 0x43c], 1
mov dword [ebp + 8], 0
jmp 0x416578
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push str.invalid__N_type:__d_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4165d4
mov dword [ebp + 8], 0
push 0x80
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413870
add esp, 8
test eax, eax
je 0x4165d2
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00413670
movzx eax, al
test eax, eax
je 0x4165d2
mov byte [ebp - 1], 0
mov esi, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x7c]
add edi, 0x20c
mov ecx, 0x83
rep movsd dword es:[edi], dword [esi]
jmp 0x4165e3
cmp dword [ebp + 8], 0
je 0x4165e3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 8], edx
jmp 0x415e72
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4