Function at 0x40ef80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [0x45f758]
push ebx
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [ebp - 4], esi
mov eax, 1
jne 0x40efa2
mov dword [0x45f758], eax
cmp dword [0x45f75c], esi
je 0x40efb6
push esi
mov dword [0x45f758], esi
call fcn.0042f9b1
mov ebx, dword [ebp + 0x10]
mov dword [0x45f75c], eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x40efff
test ebx, 0x8000000
jne 0x40efff
call fcn.00410810
mov eax, dword [0x4630c8]
mov dword [0x45f758], esi
cmp eax, esi
je 0x40eff9
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
dec eax
neg eax
sbb eax, eax
not eax
and eax, edx
push eax
call fcn.0043d050
add esp, 4
push esi
call fcn.0042f9b1
mov ecx, dword [ebp + 8]
mov edi, ebx
and edi, 0x8000000
mov dword [ebp - 8], ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], esi
je 0x40f043
cmp eax, esi
jne 0x40f02a
mov dword [ebp - 8], str.Stop___Program_terminated.
mov dword [ebp + 0x10], 0x1a
cmp dword [ebp + 0x18], esi
je 0x40f043
mov dword [ebp - 8], str.Return_code
mov dword [ebp + 0x10], 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
cmp edi, esi
je 0x40f04e
mov dword [ebp - 4], 6
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x2c]
push 0x22
lea edx, [ebp + 0xc]
push ecx
push edx
push eax
call fcn.00413e00
add esp, 0x10
cmp eax, esi
je 0x40f08d
test bl, 1
je 0x40f079
pop edi
pop esi
and eax, 0xffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push 0x4525a8
push ecx
push 2
push eax
call fcn.00410a90
add esp, 0x10
mov esi, dword [ebp + 0xc]
test byte [esi + 0x118], 1
jne 0x40f250
mov eax, dword [esi + 0x11c]
mov edx, ebx
shr edx, 0xa
and edx, 0x100
and ah, 0xfe
or edx, eax
mov ecx, ebx
mov dword [esi + 0x11c], edx
mov eax, dword [ebp + 0xc]
and ecx, 0x80
mov edx, dword [eax + 0x118]
shl ecx, 0xf
and edx, 0xffbfffff
or ecx, edx
mov dword [eax + 0x118], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x11c]
mov edx, eax
xor edx, ebx
and edx, 0x8000000
xor edx, eax
mov eax, ebx
and eax, 0x80000000
mov dword [ecx + 0x11c], edx
mov ecx, dword [ebp + 0x1c]
mov edx, ebx
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0xc]
shr edx, 5
mov esi, dword [ecx + 0x11c]
and edx, 0x200000
and esi, 0xffdfffff
or edx, esi
lea esi, [edi + edi]
mov dword [ecx + 0x11c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x11c]
and edx, 0xefffffff
or edx, esi
mov dword [ecx + 0x11c], edx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov esi, dword [ecx + 0x120]
shr edx, 0x13
and edx, 0x200
and esi, 0xfffffdff
or edx, esi
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov esi, dword [ecx + 0x120]
shr edx, 0x11
and edx, 0x400
and esi, 0xfffffbff
or edx, esi
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov esi, dword [ecx + 0x120]
shr edx, 0x12
and edx, 0x800
and esi, 0xfffff7ff
or edx, esi
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp + 0xc]
shr ebx, 0x10
mov edx, dword [ecx + 0x120]
and ebx, 0x2000
and dh, 0xdf
or ebx, edx
mov edx, eax
mov dword [ecx + 0x120], ebx
mov ecx, dword [ebp + 0xc]
and edx, 1
mov esi, dword [ecx + 0x120]
shl edx, 0x12
and esi, 0xfffbffff
or edx, esi
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp + 0xc]
mov edx, eax
and edx, 2
and eax, 0xc
mov esi, dword [ecx + 0x120]
push 1
shl edx, 0xe
and esi, 0xffff7fff
push 4
or edx, esi
push 1
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp + 0xc]
shl eax, 0x13
mov edx, dword [ecx + 0x120]
and edx, 0xff9fffff
or eax, edx
mov dword [ecx + 0x120], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040bf80
add esp, 0x10
test eax, eax
je 0x40f24d
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push eax
push 2
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x118]
push 0
test ah, 1
push esi
je 0x40f3df
call fcn.00415d30
add esp, 8
test eax, eax
jne 0x40f3eb
mov cl, byte [esi + 0x10c]
movsx eax, cl
dec eax
cmp eax, 6
ja case.default.0x40f285
jmp dword [eax*4 + 0x40f5d0]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40f29b
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x40f2a4
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x40f356
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40f2c3
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb0]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x40f356
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40f2e3
mov dword [esi + 0x2c], eax
jmp 0x40f2e9
mov edx, dword [esi + 0x28]
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb0]
mov edx, dword [esi + 0x2c]
add edx, eax
mov eax, dword [esi + 0x11c]
test eax, 0x8000000
mov dword [esi + 0x34], edx
je 0x40f37b
mov eax, dword [esi + 0x118]
test ah, 1
je 0x40f356
test ah, 0x10
je 0x40f356
cmp cl, 1
jne 0x40f356
add edx, 0xfffffffe
mov dword [esi + 0x34], edx
jmp 0x40f356
push esi
push 0xc000002c
push 0xc000002c
push 1
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24a
push 0x4525b0
push 2
push 0xc0000008
call fcn.00410a90
add esp, 0x10
test dword [esi + 0x11c], 0x8000000
je 0x40f37b
mov eax, dword [esi + 0x118]
test ah, 1
je 0x40f37b
test ah, 0x10
je 0x40f37b
cmp byte [esi + 0x10c], 1
je 0x40f3b1
mov al, byte [esi + 0x10e]
cmp al, 2
jne 0x40f398
mov al, byte [esi + 0x10c]
cmp al, 7
je 0x40f3b1
cmp al, 6
je 0x40f3b1
dec dword [esi + 0x34]
jmp 0x40f3b1
cmp al, 1
jne 0x40f3b1
mov al, byte [esi + 0x10c]
cmp al, 7
je 0x40f3ad
cmp al, 6
je 0x40f3ad
dec dword [esi + 0x34]
add dword [esi + 0x2c], 5
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x10e], 1
jne 0x40f4ea
mov ecx, dword [eax + 0x2c]
mov byte [ecx], 0x20
mov eax, dword [ebp + 0xc]
inc dword [eax + 0x2c]
jmp 0x40f4ea
call fcn.00415d30
add esp, 8
test eax, eax
je 0x40f407
push esi
push 0xc0000026
push 0xc0000026
push 1
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, byte [esi + 0x10c]
dec eax
cmp eax, 6
ja case.default.0x40f418
jmp dword [eax*4 + 0x40f5ec]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40f436
mov byte [eax + 2], 1
mov edx, dword [esi + 0x30]
mov byte [edx + 3], 0
mov eax, dword [esi + 0x30]
jmp 0x40f447
mov ecx, dword [esi + 0x28]
mov byte [ecx + 2], 1
mov edx, dword [esi + 0x28]
mov byte [edx + 3], 0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb0]
add eax, 4
add ecx, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ecx
jmp 0x40f4ea
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40f46c
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x40f475
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x40f4ea
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x40f491
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb0]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x40f4ea
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40f4bc
mov edx, dword [esi + 0xb0]
mov dword [esi + 0x2c], eax
add edx, eax
mov dword [esi + 0x34], edx
jmp 0x40f4ea
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xb0]
mov eax, ecx
mov dword [esi + 0x2c], ecx
add edx, eax
mov dword [esi + 0x34], edx
jmp 0x40f4ea
push 0x250
push str.E:_forrtl_build_for_stop.c
push 2
push 0xc0000008
call fcn.00410a90
add esp, 0x10
mov ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
jle 0x40f50a
mov esi, ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov bl, byte [eax + ecx]
inc eax
mov edx, dword [edx + 0x2c]
cmp eax, esi
mov byte [edx + eax - 1], bl
jl 0x40f4f8
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
jle 0x40f52e
mov esi, dword [ebp - 0xc]
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov bl, byte [eax + esi]
mov edx, dword [edx + 0x2c]
add edx, eax
inc eax
cmp eax, edi
mov byte [edx + ecx], bl
jl 0x40f51b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
lea edx, [eax + ecx]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x2c]
add esi, edx
mov dword [eax + 0x2c], esi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax + 0x118]
test ch, 1
je 0x40f558
call fcn.00414cb0
jmp 0x40f55d
call fcn.00414990
add esp, 4
test eax, eax
je 0x40f57b
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push eax
push 1
call fcn.00410ac0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xb8]
push eax
call fcn.00414360
add esp, 4
call fcn.00410810
mov eax, dword [0x4630c8]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [0x45f758], 0
test eax, eax
je 0x40f5bf
mov ecx, esi
dec ecx
neg ecx
sbb ecx, ecx
not ecx
and ecx, edi
push ecx
call fcn.0043d050
add esp, 4
dec esi
neg esi
sbb esi, esi
not esi
and esi, edi
push esi
call fcn.0042f9b1
mov edi, edi
xlatb
inc eax
add byte [edx + esi*8 - 0xcdeffc0], cl
inc eax
add byte [edx + esi*8 - 0xd28ffc0], cl
inc eax
add byte [ecx - 0x46ffbf0e], bh
inc eax
add byte [ebp + 0x5d0040f4], ah
hlt