Function at 0x417940
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 0x4180c8
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.0x41797b
mov eax, dword [ebp - 0x80]
jmp dword [eax*4 + 0x4180dc]
jmp 0x418058
push 0x100
push 1
call fcn.00418130
add esp, 8
push eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x438]
push edx
call fcn.00415420
add esp, 8
cmp eax, 1
jne 0x4179b4
mov byte [ebp - 1], 1
jmp 0x417a13
push 0x100
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00415420
add esp, 8
test eax, eax
jne 0x4179e8
mov edx, dword [ebp - 0x7c]
add edx, 0x418
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00415210
movzx eax, al
test eax, eax
je 0x417a13
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.004170c0
mov ecx, eax
call fcn.004161c0
movsx ecx, byte [eax]
xor edx, edx
cmp ecx, 0xa
setne dl
mov byte [ebp - 1], dl
jmp 0x418058
push 2
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00415420
add esp, 8
test eax, eax
jne 0x417a59
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00415210
movzx eax, al
test eax, eax
je 0x417a5d
mov ecx, dword [ebp - 0x7c]
call fcn.004161c0
movsx ecx, byte [eax]
cmp ecx, 0xa
je 0x417a5d
mov byte [ebp - 1], 1
jmp 0x418058
push 4
mov edx, dword [ebp - 0x7c]
mov eax, dword [edx + 0x438]
push eax
call fcn.00415420
add esp, 8
test eax, eax
je 0x417a93
mov ecx, dword [ebp - 0x7c]
add ecx, 0x418
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00415240
movzx edx, al
test edx, edx
jne 0x417ac4
push 8
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00415420
add esp, 8
test eax, eax
je 0x417aca
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00415240
movzx eax, al
test eax, eax
je 0x417aca
mov byte [ebp - 0xe], 0
jmp 0x417b02
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.00419560
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.00419560
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 0x417b24
mov byte [ebp - 1], 1
jmp 0x418058
mov ecx, dword [ebp - 0x7c]
add ecx, 0x420
push ecx
mov ecx, dword [ebp - 0x7c]
call fcn.00415240
movzx edx, al
test edx, edx
jne 0x417b62
mov ecx, dword [ebp - 0x7c]
call fcn.004161c0
movsx eax, byte [eax]
cmp eax, 0xa
je 0x417b62
mov ecx, dword [ebp - 0x7c]
call fcn.004161c0
movsx ecx, byte [eax]
cmp ecx, 0xd
jne 0x417b68
mov byte [ebp - 1], 1
jmp 0x417b70
mov ecx, dword [ebp - 0x7c]
call fcn.004151b0
jmp 0x418058
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.00413c70
push 0x80
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00415420
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.004171c0
mov esi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004171a0
add esi, eax
push esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004171c0
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.00418140
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.00415210
movzx edx, al
test edx, edx
je 0x417c32
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 0x417c36
mov byte [ebp - 1], 1
jmp 0x418058
mov eax, dword [ebp - 0x7c]
add eax, 0x420
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00415240
movzx ecx, al
test ecx, ecx
jne 0x417c72
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00419640
movzx eax, al
test eax, eax
je 0x417c72
mov dword [ebp - 0x84], 0
jmp 0x417c7c
mov dword [ebp - 0x84], 1
mov cl, byte [ebp - 0x84]
mov byte [ebp - 1], cl
jmp 0x418058
jmp 0x418058
jmp 0x418058
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.00417940
movzx ecx, al
neg ecx
sbb ecx, ecx
neg ecx
movzx edx, byte [ebp - 0x1d]
cmp ecx, edx
jne 0x417cf7
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00419170
mov byte [ebp - 1], 1
jmp 0x417d05
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 0x418058
mov dword [ebp + 8], 0
jmp 0x418058
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 0x418058
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 0x417d63
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 0x14], 0
je 0x417d98
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 0x418058
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 0x417eb2
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.00415210
movzx eax, al
test eax, eax
je 0x417ea4
push 0x80
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x438]
push edx
call fcn.00415420
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.00419a40
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.00415240
movzx ecx, al
test ecx, ecx
je 0x417ea4
mov byte [ebp - 1], 1
jmp 0x417eb2
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 0x418058
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.004191d0
movzx eax, al
test eax, eax
jne 0x417ed0
mov byte [ebp - 1], 1
jmp 0x417ed7
mov dword [ebp + 8], 0
jmp 0x418058
jmp 0x418058
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.00419290
movzx eax, al
test eax, eax
jne 0x417f0a
mov byte [ebp - 1], 1
jmp 0x417f11
mov dword [ebp + 8], 0
jmp 0x418058
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 0x417f41
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x60], edx
jmp 0x417f28
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
je 0x417f63
mov edx, dword [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.00415240
movzx eax, al
test eax, eax
je 0x417f6c
mov dword [ebp + 8], 0
jmp 0x417f83
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 0x418058
jmp 0x418058
push 0x2000
push 0x20
call fcn.00418130
add esp, 8
push eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00415420
add esp, 8
test eax, eax
je 0x417fcc
mov edx, dword [ebp - 0x7c]
push edx
mov ecx, dword [ebp - 0x7c]
add ecx, 0x418
call fcn.00415240
movzx eax, al
test eax, eax
jne 0x417ff2
mov ecx, dword [ebp - 0x7c]
movzx edx, byte [ecx + 0x444]
test edx, edx
je 0x417ff8
mov eax, dword [ebp - 0x7c]
add eax, 0x420
push eax
mov ecx, dword [ebp - 0x7c]
call fcn.00415210
movzx ecx, al
test ecx, ecx
je 0x417ff8
mov byte [ebp - 1], 1
jmp 0x418032
mov edx, dword [ebp - 0x7c]
movzx eax, byte [edx + 0x43c]
test eax, eax
je 0x418015
mov ecx, dword [ebp - 0x7c]
call fcn.004198a0
movzx ecx, al
test ecx, ecx
je 0x418032
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 0x418058
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 0x4180b4
mov dword [ebp + 8], 0
push 0x80
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax + 0x438]
push ecx
call fcn.00415420
add esp, 8
test eax, eax
je 0x4180b2
mov edx, dword [ebp - 0x7c]
add edx, 0x420
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.00415240
movzx eax, al
test eax, eax
je 0x4180b2
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 0x4180c3
cmp dword [ebp + 8], 0
je 0x4180c3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov dword [ebp + 8], edx
jmp 0x417952
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4