Function at 0x4156d0
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 0x415e58
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.0x41570b
mov eax, dword [ebp - 0x80]
jmp dword [eax*4 + 0x415e6c]
jmp 0x415de8
push 0x100
push 1
call fcn.00415ec0
add esp, 8
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x438]
push edx
call fcn.00413210
add esp, 8
cmp eax, 1
jne 0x415744
mov byte [ebp - 1], 1
jmp 0x4157a3
push 0x100
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413210
add esp, 8
test eax, eax
jne 0x415778
mov edx, dword [ebp - 0x7c]
add edx, 0x418
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00412fe0
movzx eax, al
test eax, eax
je 0x4157a3
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.00414e90
mov ecx, eax
call fcn.00413f60
movsx ecx, byte [eax]
xor edx, edx
cmp ecx, 0xa
setne dl
mov byte [ebp - 1], dl
jmp 0x415de8
push 2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413210
add esp, 8
test eax, eax
jne 0x4157e9
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00412fe0
movzx eax, al
test eax, eax
je 0x4157ed
mov ecx, dword [ebp - 0x7c]
call fcn.00413f60
movsx ecx, byte [eax]
cmp ecx, 0xa
je 0x4157ed
mov byte [ebp - 1], 1
jmp 0x415de8
push 4
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x438]
push eax
call fcn.00413210
add esp, 8
test eax, eax
je 0x415823
mov ecx, dword [ebp - 0x7c]
add ecx, 0x418
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00413010
movzx edx, al
test edx, edx
jne 0x415854
push 8
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413210
add esp, 8
test eax, eax
je 0x41585a
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00413010
movzx eax, al
test eax, eax
je 0x41585a
mov byte [ebp - 0xe], 0
jmp 0x415892
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.00417310
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.00417310
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 0x4158b4
mov byte [ebp - 1], 1
jmp 0x415de8
mov ecx, dword [ebp - 0x7c]
add ecx, 0x420
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00413010
movzx edx, al
test edx, edx
jne 0x4158f2
mov ecx, dword [ebp - 0x7c]
call fcn.00413f60
movsx eax, byte [eax]
cmp eax, 0xa
je 0x4158f2
mov ecx, dword [ebp - 0x7c]
call fcn.00413f60
movsx ecx, byte [eax]
cmp ecx, 0xd
jne 0x4158f8
mov byte [ebp - 1], 1
jmp 0x415900
mov ecx, dword [ebp - 0x7c]
call fcn.00412f80
jmp 0x415de8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.00411b90
push 0x80
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413210
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.00414f50
mov esi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.0043d3b0
add esi, eax
push esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.00414f50
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.00415ed0
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.00412fe0
movzx edx, al
test edx, edx
je 0x4159c2
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 0x4159c6
mov byte [ebp - 1], 1
jmp 0x415de8
mov eax, dword [ebp - 0x7c]
add eax, 0x420
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00413010
movzx ecx, al
test ecx, ecx
jne 0x415a02
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.004173f0
movzx eax, al
test eax, eax
je 0x415a02
mov dword [ebp - 0x84], 0
jmp 0x415a0c
mov dword [ebp - 0x84], 1
mov cl, byte [ebp - 0x84]
mov byte [ebp - 1], cl
jmp 0x415de8
jmp 0x415de8
jmp 0x415de8
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.004156d0
movzx ecx, al
neg ecx
sbb ecx, ecx
neg ecx
movzx edx, byte [ebp - 0x1d]
cmp ecx, edx
jne 0x415a87
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00416f00
mov byte [ebp - 1], 1
jmp 0x415a95
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 0x415de8
mov dword [ebp + 8], 0
jmp 0x415de8
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 0x415de8
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 0x415af3
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x14], 0
je 0x415b28
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 0x415de8
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 0x415c42
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.00412fe0
movzx eax, al
test eax, eax
je 0x415c34
push 0x80
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x438]
push edx
call fcn.00413210
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.004177f0
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.00413010
movzx ecx, al
test ecx, ecx
je 0x415c34
mov byte [ebp - 1], 1
jmp 0x415c42
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 0x415de8
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00416f80
movzx eax, al
test eax, eax
jne 0x415c60
mov byte [ebp - 1], 1
jmp 0x415c67
mov dword [ebp + 8], 0
jmp 0x415de8
jmp 0x415de8
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.00417040
movzx eax, al
test eax, eax
jne 0x415c9a
mov byte [ebp - 1], 1
jmp 0x415ca1
mov dword [ebp + 8], 0
jmp 0x415de8
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 0x415cd1
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x60], edx
jmp 0x415cb8
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
je 0x415cf3
mov edx, dword [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.00413010
movzx eax, al
test eax, eax
je 0x415cfc
mov dword [ebp + 8], 0
jmp 0x415d13
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 0x415de8
jmp 0x415de8
push 0x2000
push 0x20
call fcn.00415ec0
add esp, 8
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413210
add esp, 8
test eax, eax
je 0x415d5c
mov edx, dword [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x7c]
add ecx, 0x418
call fcn.00413010
movzx eax, al
test eax, eax
jne 0x415d82
mov ecx, dword [ebp - 0x7c]
movzx edx, byte [ecx + 0x444]
test edx, edx
je 0x415d88
mov eax, dword [ebp - 0x7c]
add eax, 0x420
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00412fe0
movzx ecx, al
test ecx, ecx
je 0x415d88
mov byte [ebp - 1], 1
jmp 0x415dc2
mov edx, dword [ebp - 0x7c]
movzx eax, byte [edx + 0x43c]
test eax, eax
je 0x415da5
mov ecx, dword [ebp - 0x7c]
call fcn.00417650
movzx ecx, al
test ecx, ecx
je 0x415dc2
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 0x415de8
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 0x415e44
mov dword [ebp + 8], 0
push 0x80
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00413210
add esp, 8
test eax, eax
je 0x415e42
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00413010
movzx eax, al
test eax, eax
je 0x415e42
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 0x415e53
cmp dword [ebp + 8], 0
je 0x415e53
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 8], edx
jmp 0x4156e2
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4