Function at 0x40edb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push 0x4dec40
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
call fcn.00401dd0
pop ecx
mov eax, dword [0x4dec44]
test eax, eax
jne 0x40f739
movzx ecx, byte [ebp + 0x13]
mov dword [0x4dec44], 1
mov eax, ecx
and eax, 8
shr eax, 3
test ebx, ebx
je 0x40ee01
test eax, eax
jmp 0x40ee09
test eax, eax
je 0x40f3db
mov dword [ebp - 0x18], edi
mov esi, ebx
je 0x40eeb0
test ebx, ebx
jne 0x40ee59
push 0
push 0x209
call fcn.00415770
push 0x40
push eax
push str.Stop___Program_terminated.
call fcn.00452ab0
add esp, 0x14
mov dword [ebp - 0x18], str.Stop___Program_terminated.
mov ecx, str.Stop___Program_terminated.
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x40ee57
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x40ee42
dec eax
mov esi, eax
cmp dword [ebp + 0x18], 0
jne 0x40ee69
movzx ecx, byte [ebp + 0x13]
xor edi, edi
xor ebx, ebx
jmp 0x40eeb4
push 0
push 0x20a
call fcn.00415770
push 0x40
push eax
push str.Return_code
call fcn.00452ab0
add esp, 0x14
mov dword [ebp - 0x18], str.Return_code
mov ecx, str.Return_code
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x40eea8
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x40ee93
dec eax
movzx ecx, byte [ebp + 0x13]
mov esi, eax
jmp 0x40eeb4
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push 0x28
push eax
and ecx, 8
shr ecx, 2
mov edx, 2
shl edx, cl
add edx, 0xfffffffe
lea ecx, [ebp - 4]
mov dword [ebp - 0x4c], edx
push ecx
push edx
call fcn.00410040
mov edx, dword [ebp - 0x4c]
add esp, 0x10
test eax, eax
je 0x40ef08
test byte [ebp + 0x10], 1
je 0x40eef7
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
movzx eax, ax
mov esp, ebp
pop ebp
ret
push str.unknown
push edx
push 2
push eax
call fcn.00414810
add esp, 0x10
mov edx, dword [ebp - 4]
test byte [edx + 0x161], 0x20
je 0x40f507
test byte [edx + 0x162], 0x40
je 0x40f1a0
push 0
mov dword [ebp - 0x4c], edx
push edx
call fcn.00426100
mov edx, dword [ebp - 0x4c]
add esp, 8
test eax, eax
je 0x40efa4
mov eax, dword [edx + 0x18]
test eax, eax
je 0x40f416
test byte [eax + 0x44], 2
je 0x40ef7a
mov ecx, 0x26
mov dword [eax + 0x38], ecx
mov eax, dword [edx + 0x18]
mov dword [eax + 0x3c], ecx
mov eax, dword [edx + 0x64]
test eax, eax
je 0x40ef68
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edx + 0x164]
and ecx, 7
mov eax, 0x26
push eax
push eax
push ecx
push 0xffffffffffffffff
push edx
call fcn.0041a610
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 0x14c]
mov dword [ebp - 0x40], eax
lea eax, [eax - 1]
cmp eax, 7
ja case.default.0x40efc1
mov eax, dword [eax*4 + 0x4beb44]
jmp eax
mov eax, dword [edx + 0x40]
test eax, eax
jne 0x40efcd
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0xf0]
mov dword [edx + 0x3c], eax
lea ecx, [eax + ecx - 1]
mov dword [edx + 0x44], ecx
movzx ecx, byte [edx + 0x160]
mov dword [ebp - 0x44], ecx
jmp 0x40f106
mov eax, dword [edx + 0x18]
test eax, eax
je 0x40f435
test byte [eax + 0x44], 2
je 0x40f02c
mov ecx, 0x2c
mov dword [eax + 0x38], ecx
mov eax, dword [edx + 0x18]
mov dword [eax + 0x3c], ecx
mov eax, dword [edx + 0x64]
test eax, eax
je 0x40f01a
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0x2c
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edx + 0x164]
and ecx, 7
mov eax, 0x2c
push eax
push eax
push ecx
push 0xffffffffffffffff
push edx
call fcn.0041a610
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x40]
test eax, eax
je 0x40f062
add eax, 4
jmp 0x40f068
mov eax, dword [edx + 0x38]
add eax, 4
mov ecx, dword [edx + 0xf0]
mov dword [edx + 0x3c], eax
lea ecx, [eax + ecx - 8]
mov dword [edx + 0x44], ecx
movzx ecx, byte [edx + 0x160]
mov dword [ebp - 0x44], ecx
jmp 0x40f106
mov eax, dword [edx + 0x40]
test eax, eax
jne 0x40f091
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0xf0]
mov dword [ebp - 0x4c], ecx
mov dword [edx + 0x3c], eax
add ecx, eax
mov dword [ebp - 0x48], ecx
movzx ecx, byte [edx + 0x160]
mov dword [ebp - 0x44], ecx
test cl, 4
je 0x40f0c9
test byte [edx + 0x162], 0x40
je 0x40f0c9
test byte [edx + 0x163], 8
je 0x40f0c9
cmp dword [ebp - 0x40], 1
je 0x40f0d1
mov ecx, dword [ebp - 0x48]
mov dword [edx + 0x44], ecx
jmp 0x40f106
mov ecx, dword [ebp - 0x4c]
lea ecx, [eax + ecx - 2]
mov dword [edx + 0x44], ecx
jmp 0x40f106
push 0x26b
push str.for_stop.c
push 2
push 8
mov dword [ebp - 0x4c], edx
call fcn.00414810
mov edx, dword [ebp - 0x4c]
add esp, 0x10
movzx eax, byte [edx + 0x160]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x3c]
test byte [ebp - 0x44], 4
je 0x40f127
test byte [edx + 0x162], 0x40
je 0x40f127
test byte [edx + 0x163], 8
je 0x40f127
cmp byte [edx + 0x14c], 1
je 0x40f172
movsx ecx, byte [edx + 0x14e]
cmp ecx, 2
jne 0x40f14e
movsx ecx, byte [edx + 0x14c]
cmp ecx, 7
je 0x40f172
cmp ecx, 6
je 0x40f172
cmp ecx, 8
je 0x40f172
dec dword [edx + 0x44]
jmp 0x40f172
cmp ecx, 1
jne 0x40f172
movsx ecx, byte [edx + 0x14c]
cmp ecx, 7
je 0x40f16c
cmp ecx, 6
je 0x40f16c
cmp ecx, 8
je 0x40f16c
dec dword [edx + 0x44]
add eax, 5
mov dword [edx + 0x3c], eax
mov dword [edx + 0x4c], 0
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14e], 1
jne 0x40f2f0
mov eax, dword [eax + 0x3c]
mov byte [eax], 0x20
mov edx, dword [ebp - 4]
inc dword [edx + 0x3c]
mov eax, dword [ebp - 4]
jmp 0x40f2f0
push 0
mov dword [ebp - 0x4c], edx
push edx
call fcn.00426100
mov edx, dword [ebp - 0x4c]
add esp, 8
test eax, eax
je 0x40f21f
mov eax, dword [edx + 0x18]
test eax, eax
je 0x40f454
test byte [eax + 0x44], 2
je 0x40f1f5
mov ecx, 0x26
mov dword [eax + 0x38], ecx
mov eax, dword [edx + 0x18]
mov dword [eax + 0x3c], ecx
mov eax, dword [edx + 0x64]
test eax, eax
je 0x40f1e3
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx ecx, byte [edx + 0x164]
and ecx, 7
mov eax, 0x26
push eax
push eax
push ecx
push 0xffffffffffffffff
push edx
call fcn.0041a610
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
movsx eax, byte [edx + 0x14c]
dec eax
cmp eax, 7
ja case.default.0x40f237
mov eax, dword [eax*4 + 0x4beb24]
jmp eax
mov eax, dword [edx + 0x40]
test eax, eax
jne 0x40f243
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0xf0]
mov dword [edx + 0x3c], eax
lea eax, [eax + ecx - 1]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
jmp 0x40f2f0
mov eax, 1
mov word [ebp - 0x4c], ax
mov eax, dword [edx + 0x40]
test eax, eax
je 0x40f473
mov byte [eax + 2], 1
mov eax, dword [edx + 0x40]
mov byte [eax + 3], 0
mov ecx, dword [edx + 0x40]
add ecx, 4
mov eax, dword [edx + 0xf0]
mov dword [edx + 0x3c], ecx
add ecx, eax
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 4]
jmp 0x40f2f0
mov eax, dword [edx + 0x40]
test eax, eax
je 0x40f29f
add eax, 4
jmp 0x40f2a5
mov eax, dword [edx + 0x38]
add eax, 4
mov ecx, dword [edx + 0xf0]
mov dword [edx + 0x3c], eax
lea eax, [eax + ecx - 8]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
jmp 0x40f2f0
mov ecx, dword [edx + 0x40]
test ecx, ecx
jne 0x40f2c4
mov ecx, dword [edx + 0x38]
mov eax, dword [edx + 0xf0]
mov dword [edx + 0x3c], ecx
add ecx, eax
mov dword [edx + 0x44], ecx
mov eax, dword [ebp - 4]
jmp 0x40f2f0
push 0x271
push str.for_stop.c
push 2
push 8
call fcn.00414810
add esp, 0x10
mov eax, dword [ebp - 4]
test esi, esi
jle 0x40f316
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
xor edx, edx
mov edi, dword [eax + 0x3c]
movzx eax, byte [edx + ecx]
mov byte [edi + edx], al
inc edx
cmp edx, esi
jge 0x40f310
mov eax, dword [ebp - 4]
jmp 0x40f2fc
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
test ebx, ebx
jle 0x40f335
xor ecx, ecx
mov edx, esi
add edx, dword [eax + 0x3c]
movzx eax, byte [ecx + edi]
mov byte [edx + ecx], al
inc ecx
cmp ecx, ebx
jge 0x40f332
mov eax, dword [ebp - 4]
jmp 0x40f31c
mov eax, dword [ebp - 4]
lea edx, [esi + ebx]
add dword [eax + 0x3c], edx
mov eax, dword [ebp - 4]
test byte [eax + 0x162], 0x40
je 0x40f34f
push eax
call fcn.00424bf0
jmp 0x40f355
push eax
call fcn.00424150
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
je 0x40f4b3
cmp dword [0x4e8dc0], 0
jne 0x40f377
cmp dword [ecx + 0xdc], 0
je 0x40f4a9
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40f48f
test byte [edx + 0x44], 2
je 0x40f3b6
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f3a9
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
push eax
movzx edx, byte [ecx + 0x164]
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0041a610
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
call fcn.004262d0
cmp dword [0x4e8dc0], 0
jne 0x40f3f5
push 0
call fcn.00453020
jmp 0x40f746
cmp dword [ebp + 0x18], 1
mov eax, dword [ebp - 0x14]
je 0x40f403
mov eax, 0
push eax
mov dword [0x4dec40], 0
call fcn.004ac780
pop ecx
jmp 0x40f3e9
push edx
mov eax, 0x26
push eax
push eax
push 1
call fcn.00412770
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edx
mov eax, 0x2c
push eax
push eax
push 1
call fcn.00412770
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push edx
mov eax, 0x26
push eax
push eax
push 1
call fcn.00412770
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x38]
mov byte [eax + 2], 1
mov ecx, dword [edx + 0x38]
movzx eax, byte [ebp - 0x4b]
mov byte [ecx + 3], al
mov ecx, dword [edx + 0x38]
add ecx, 4
jmp 0x40f280
push ecx
push eax
push eax
push 1
call fcn.00412770
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
add esi, ebx
test esi, esi
jle 0x40f377
push dword [ecx + 0xf8]
call fcn.0040f870
pop ecx
call fcn.004262d0
cmp dword [0x4e8dc0], 0
jne 0x40f4e6
cmp dword [ebp + 0x18], 1
mov eax, dword [ebp - 0x14]
je 0x40f4db
mov eax, 0
push eax
call fcn.00453020
jmp 0x40f746
cmp dword [ebp + 0x18], 1
mov eax, dword [ebp - 0x14]
je 0x40f4f4
mov eax, 0
push eax
mov dword [0x4dec40], 0
call fcn.004ac780
pop ecx
jmp 0x40f4cd
movzx ecx, byte [ebp + 0x12]
movzx eax, byte [edx + 0x160]
mov dword [ebp - 0x40], ebx
and eax, 0xfffffffd
and ecx, 4
shr ecx, 1
or eax, ecx
movzx ecx, byte [ebp + 0x13]
mov dword [ebp - 0x44], ecx
mov byte [edx + 0x160], al
mov eax, dword [ebp - 4]
movzx edx, byte [ebp + 0x10]
movzx ebx, byte [eax + 0x160]
and ebx, 0xfffffffe
and edx, 0xffffff80
shr edx, 7
or ebx, edx
mov byte [eax + 0x160], bl
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x160]
mov ebx, ecx
and ebx, 8
shr ebx, 3
mov dword [ebp - 0x48], ebx
and edx, 0xfffffffb
shl ebx, 2
or edx, ebx
mov ebx, dword [ebp - 0x40]
mov byte [eax + 0x160], dl
test ecx, 0x80
je 0x40f586
lea eax, [ebp + 0x1f]
and eax, 0xfffffffc
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
jmp 0x40f58d
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x48]
movzx eax, byte [edx + 0x160]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x40], ebx
and eax, 0xfffffff7
mov ebx, edi
and ebx, 4
shr ebx, 2
shl ebx, 3
or eax, ebx
mov byte [edx + 0x160], al
mov eax, ecx
shl eax, 5
mov ebx, dword [ebp - 4]
movzx edx, byte [ebx + 0x160]
and edx, 0xffffffdf
or edx, eax
mov byte [ebx + 0x160], dl
mov edx, edi
mov ebx, dword [ebp - 4]
movzx eax, byte [ebx + 0x169]
and eax, 0xfffffffb
and edx, 0x10
shr edx, 2
or eax, edx
mov byte [ebx + 0x169], al
mov eax, dword [ebp - 4]
movzx edx, byte [eax + 0x169]
and edx, 0xfffffff7
shl ecx, 3
or edx, ecx
mov byte [eax + 0x169], dl
mov edx, dword [ebp - 4]
movzx ebx, byte [edx + 0x160]
and edi, 0x20
shr edi, 5
and ebx, 0xffffffbf
mov ecx, edi
shl ecx, 6
or ebx, ecx
mov byte [edx + 0x160], bl
shl edi, 7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x4c]
movzx eax, byte [ecx + 0x160]
and eax, 0x7f
or eax, edi
mov byte [ecx + 0x160], al
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x161]
and ecx, 0xfffffffe
mov edi, edx
and edi, 1
or ecx, edi
mov byte [eax + 0x161], cl
mov edi, dword [ebp - 4]
movzx eax, byte [edi + 0x169]
and eax, 0xffffffdf
mov ecx, edx
and ecx, 2
shr ecx, 1
shl ecx, 5
or eax, ecx
mov byte [edi + 0x169], al
and edx, 0xc
shr edx, 1
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
movzx ebx, byte [eax + 0x161]
and ebx, 0xfffffff9
or ebx, edx
mov byte [eax + 0x161], bl
mov ebx, dword [ebp - 0x40]
mov edx, 1
push edx
push 4
push edx
push dword [ebp - 4]
call fcn.00405970
add esp, 0x10
test eax, eax
je 0x40f717
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
test edx, edx
je 0x40f71f
test byte [edx + 0x44], 2
je 0x40f6f2
mov dword [edx + 0x38], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x18]
mov dword [ecx + 0x3c], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
test edx, edx
je 0x40f6e5
xor ecx, ecx
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], ecx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push eax
push eax
movzx edx, byte [ecx + 0x164]
and edx, 7
push edx
push 0xffffffffffffffff
push ecx
call fcn.0041a610
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
jmp 0x40ef18
push ecx
push eax
push eax
push 2
call fcn.00412770
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [0x4dec40], eax
push eax
call fcn.00453020
pop ecx
mov esi, esi
lea edi, [edi]
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [ebp - 4]
xor eax, eax
push eax
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040edb0
add esp, 0x18
mov esp, ebp
pop ebp
ret