Function at 0x41f420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47b7dc]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 8], 0
jne 0x41f445
mov dword [0x47b7dc], 1
jmp 0x41f44f
push 0
call fcn.00442b6c
add esp, 4
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x41f491
test ebx, 0x8000000
jne 0x41f491
call fcn.0042ef70
mov eax, dword [0x47eb44]
test eax, eax
je 0x41f487
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.0044e630
add esp, 4
push 0
call fcn.00442b6c
add esp, 4
mov eax, dword [ebp + 8]
mov edi, ebx
xor ecx, ecx
and edi, 0x8000000
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x10], ecx
je 0x41f4d7
cmp esi, ecx
jne 0x41f4be
mov dword [ebp + 8], str.Stop___Program_terminated.
mov dword [ebp + 0xc], 0x1a
cmp dword [ebp + 0x18], ecx
je 0x41f4d7
mov dword [ebp + 8], str.Return_code
mov dword [ebp + 0xc], 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x10], esi
cmp edi, ecx
je 0x41f4e2
mov dword [ebp - 8], 6
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0x2c]
push 0x22
lea edx, [ebp - 4]
push ecx
push edx
push esi
call fcn.00426560
add esp, 0x10
test eax, eax
je 0x41f51e
test bl, 1
je 0x41f50d
and eax, 0xffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x46da08
push esi
push 2
push eax
call fcn.00423e10
add esp, 0x10
mov esi, dword [ebp - 4]
test byte [esi + 0x11c], 1
jne 0x41f6a2
mov ecx, dword [esi + 0x120]
mov eax, ebx
shr eax, 0xa
and eax, 0x100
and ch, 0xfe
or eax, ecx
mov edx, ebx
mov dword [esi + 0x120], eax
mov eax, dword [ebp - 4]
and edx, 0x80
push 1
mov ecx, dword [eax + 0x11c]
shl edx, 0xf
and ecx, 0xffbfffff
or edx, ecx
mov dword [eax + 0x11c], edx
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ecx + 0x120]
xor edx, eax
and edx, 0x8000000
xor edx, eax
mov eax, ebx
and eax, 0x80000000
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp + 0x1c]
mov edx, ebx
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 4]
shr edx, 5
mov esi, dword [ecx + 0x120]
and edx, 0x200000
and esi, 0xffdfffff
and eax, 1
or edx, esi
lea esi, [edi + edi]
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp - 4]
shl eax, 0x11
mov edx, dword [ecx + 0x120]
and edx, 0xefffffff
or edx, esi
mov dword [ecx + 0x120], edx
mov ecx, dword [ebp - 4]
mov edx, ebx
mov esi, dword [ecx + 0x124]
shr edx, 0x13
and edx, 0x200
and esi, 0xfffffdff
or edx, esi
mov dword [ecx + 0x124], edx
mov ecx, dword [ebp - 4]
mov edx, ebx
mov esi, dword [ecx + 0x124]
shr edx, 0x11
and edx, 0x400
and esi, 0xfffffbff
or edx, esi
mov dword [ecx + 0x124], edx
mov ecx, dword [ebp - 4]
mov edx, ebx
mov esi, dword [ecx + 0x124]
shr edx, 0x12
and edx, 0x800
and esi, 0xfffff7ff
or edx, esi
mov dword [ecx + 0x124], edx
mov ecx, dword [ebp - 4]
shr ebx, 0x10
mov edx, dword [ecx + 0x124]
and ebx, 0x2000
and dh, 0xdf
or ebx, edx
mov dword [ecx + 0x124], ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x124]
and edx, 0xfffdffff
or eax, edx
mov dword [ecx + 0x124], eax
mov eax, dword [ebp - 4]
push 4
push 1
push eax
call fcn.0041a6d0
add esp, 0x10
test eax, eax
je 0x41f69f
mov ecx, dword [ebp - 4]
push ecx
push eax
push eax
push 2
call fcn.00423e40
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x11c]
push 0
test ah, 1
push esi
je 0x41f831
call fcn.0042af50
add esp, 8
test eax, eax
jne 0x41f83d
mov cl, byte [esi + 0x110]
movsx eax, cl
dec eax
cmp eax, 6
ja case.default.0x41f6d7
jmp dword [eax*4 + 0x41fa28]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41f6ed
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x41f6f6
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 0x41f7a8
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41f715
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 0x41f7a8
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41f735
mov dword [esi + 0x2c], eax
jmp 0x41f73b
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 + 0x120]
test eax, 0x8000000
mov dword [esi + 0x34], edx
je 0x41f7cd
mov eax, dword [esi + 0x11c]
test ah, 1
je 0x41f7a8
test ah, 0x10
je 0x41f7a8
cmp cl, 1
jne 0x41f7a8
add edx, 0xfffffffe
mov dword [esi + 0x34], edx
jmp 0x41f7a8
push esi
push 0xc000002c
push 0xc000002c
push 1
call fcn.00423e40
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x237
push 0x46da10
push 2
push 0xc0000008
call fcn.00423e10
add esp, 0x10
test dword [esi + 0x120], 0x8000000
je 0x41f7cd
mov eax, dword [esi + 0x11c]
test ah, 1
je 0x41f7cd
test ah, 0x10
je 0x41f7cd
cmp byte [esi + 0x110], 1
je 0x41f803
mov al, byte [esi + 0x112]
cmp al, 2
jne 0x41f7ea
mov al, byte [esi + 0x110]
cmp al, 7
je 0x41f803
cmp al, 6
je 0x41f803
dec dword [esi + 0x34]
jmp 0x41f803
cmp al, 1
jne 0x41f803
mov al, byte [esi + 0x110]
cmp al, 7
je 0x41f7ff
cmp al, 6
je 0x41f7ff
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 - 4]
cmp byte [eax + 0x112], 1
jne 0x41f93c
mov ecx, dword [eax + 0x2c]
mov byte [ecx], 0x20
mov eax, dword [ebp - 4]
inc dword [eax + 0x2c]
jmp 0x41f93c
call fcn.0042af50
add esp, 8
test eax, eax
je 0x41f859
push esi
push 0xc0000026
push 0xc0000026
push 1
call fcn.00423e40
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, byte [esi + 0x110]
dec eax
cmp eax, 6
ja case.default.0x41f86a
jmp dword [eax*4 + 0x41fa44]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41f888
mov byte [eax + 2], 1
mov edx, dword [esi + 0x30]
mov byte [edx + 3], 0
mov eax, dword [esi + 0x30]
jmp 0x41f899
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 0x41f93c
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41f8be
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x41f8c7
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 0x41f93c
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41f8e3
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 0x41f93c
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41f90e
mov edx, dword [esi + 0xb0]
mov dword [esi + 0x2c], eax
add edx, eax
mov dword [esi + 0x34], edx
jmp 0x41f93c
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 0x41f93c
push 0x23d
push str.E:_forrtl_build_for_stop.c
push 2
push 0xc0000008
call fcn.00423e10
add esp, 0x10
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
jle 0x41f95c
mov esi, ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov bl, byte [ecx + eax]
inc eax
mov edx, dword [edx + 0x2c]
cmp eax, esi
mov byte [edx + eax - 1], bl
jl 0x41f94a
mov ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
jle 0x41f982
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov bl, byte [esi + eax]
mov edx, dword [edx + 0x2c]
add edx, ecx
inc eax
cmp eax, edi
mov byte [edx + eax - 1], bl
jl 0x41f96e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [eax + ecx]
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x2c]
add esi, edx
mov dword [eax + 0x2c], esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax + 0x11c]
test ch, 1
je 0x41f9ac
call fcn.00429d60
jmp 0x41f9b1
call fcn.00429a40
add esp, 4
test eax, eax
je 0x41f9cf
mov ecx, dword [ebp - 4]
push ecx
push eax
push eax
push 1
call fcn.00423e40
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb8]
push eax
call fcn.004269f0
add esp, 4
call fcn.0042ef70
mov eax, dword [0x47eb44]
mov esi, dword [ebp + 0x18]
test eax, eax
je 0x41fa09
mov ecx, esi
mov edi, dword [ebp + 0x14]
dec ecx
neg ecx
sbb ecx, ecx
not ecx
and ecx, edi
push ecx
call fcn.0044e630
add esp, 4
mov edx, dword [ebp + 0x14]
dec esi
neg esi
sbb esi, esi
not esi
and esi, edx
push esi
call fcn.00442b6c
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret