Function at 0x481180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [0x3f567d8]
push ebx
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [ebp - 4], esi
mov eax, 1
jne 0x4811a2
mov dword [0x3f567d8], eax
cmp dword [0x3f567dc], esi
je 0x4811b6
push esi
mov dword [0x3f567d8], esi
call fcn.0049ef87
mov ebx, dword [ebp + 0x10]
mov dword [0x3f567dc], eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x4811ff
test ebx, 0x8000000
jne 0x4811ff
call fcn.00489db0
mov eax, dword [0x3f5a180]
mov dword [0x3f567d8], esi
cmp eax, esi
je 0x4811f9
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.004aa240
add esp, 4
push esi
call fcn.0049ef87
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 0x481243
cmp eax, esi
jne 0x48122a
mov dword [ebp - 8], str.Stop___Program_terminated.
mov dword [ebp + 0x10], 0x1a
cmp dword [ebp + 0x18], esi
je 0x481243
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 0x48124e
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.004856f0
add esp, 0x10
cmp eax, esi
je 0x48128d
test bl, 1
je 0x481279
pop edi
pop esi
and eax, 0xffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push str.unknown
push ecx
push 2
push eax
call fcn.00482080
add esp, 0x10
mov esi, dword [ebp + 0xc]
test byte [esi + 0x128], 1
jne 0x481450
mov eax, dword [esi + 0x12c]
mov edx, ebx
shr edx, 0xa
and edx, 0x100
and ah, 0xfe
or edx, eax
mov ecx, ebx
mov dword [esi + 0x12c], edx
mov eax, dword [ebp + 0xc]
and ecx, 0x80
mov edx, dword [eax + 0x128]
shl ecx, 0xf
and edx, 0xffbfffff
or ecx, edx
mov dword [eax + 0x128], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x12c]
mov edx, eax
xor edx, ebx
and edx, 0x8000000
xor edx, eax
mov eax, ebx
and eax, 0x80000000
mov dword [ecx + 0x12c], 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 + 0x12c]
and edx, 0x200000
and esi, 0xffdfffff
or edx, esi
lea esi, [edi + edi]
mov dword [ecx + 0x12c], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x12c]
and edx, 0xefffffff
or edx, esi
mov dword [ecx + 0x12c], edx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov esi, dword [ecx + 0x130]
shr edx, 0x13
and edx, 0x200
and esi, 0xfffffdff
or edx, esi
mov dword [ecx + 0x130], edx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov esi, dword [ecx + 0x130]
shr edx, 0x11
and edx, 0x400
and esi, 0xfffffbff
or edx, esi
mov dword [ecx + 0x130], edx
mov ecx, dword [ebp + 0xc]
mov edx, ebx
mov esi, dword [ecx + 0x130]
shr edx, 0x12
and edx, 0x800
and esi, 0xfffff7ff
or edx, esi
mov dword [ecx + 0x130], edx
mov ecx, dword [ebp + 0xc]
shr ebx, 0x10
mov edx, dword [ecx + 0x130]
and ebx, 0x2000
and dh, 0xdf
or ebx, edx
mov edx, eax
mov dword [ecx + 0x130], ebx
mov ecx, dword [ebp + 0xc]
and edx, 1
mov esi, dword [ecx + 0x130]
shl edx, 0x12
and esi, 0xfffbffff
or edx, esi
mov dword [ecx + 0x130], edx
mov ecx, dword [ebp + 0xc]
mov edx, eax
and edx, 2
and eax, 0xc
mov esi, dword [ecx + 0x130]
push 1
shl edx, 0xe
and esi, 0xffff7fff
push 4
or edx, esi
push 1
mov dword [ecx + 0x130], edx
mov ecx, dword [ebp + 0xc]
shl eax, 0x13
mov edx, dword [ecx + 0x130]
and edx, 0xff9fffff
or eax, edx
mov dword [ecx + 0x130], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004718e0
add esp, 0x10
test eax, eax
je 0x48144d
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push eax
push 2
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x128]
push 0
test ah, 1
push esi
je 0x4815df
call fcn.00489a70
add esp, 8
test eax, eax
jne 0x4815eb
mov cl, byte [esi + 0x11c]
movsx eax, cl
dec eax
cmp eax, 6
ja case.default.0x481485
jmp dword [eax*4 + 0x4817d0]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x48149b
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x4814a4
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x481556
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4814c3
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb4]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x481556
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4814e3
mov dword [esi + 0x2c], eax
jmp 0x4814e9
mov edx, dword [esi + 0x28]
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb4]
mov edx, dword [esi + 0x2c]
add edx, eax
mov eax, dword [esi + 0x12c]
test eax, 0x8000000
mov dword [esi + 0x34], edx
je 0x48157b
mov eax, dword [esi + 0x128]
test ah, 1
je 0x481556
test ah, 0x10
je 0x481556
cmp cl, 1
jne 0x481556
add edx, 0xfffffffe
mov dword [esi + 0x34], edx
jmp 0x481556
push esi
push 0xc000002c
push 0xc000002c
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x256
push 0x4b937c
push 2
push 0xc0000008
call fcn.00482080
add esp, 0x10
test dword [esi + 0x12c], 0x8000000
je 0x48157b
mov eax, dword [esi + 0x128]
test ah, 1
je 0x48157b
test ah, 0x10
je 0x48157b
cmp byte [esi + 0x11c], 1
je 0x4815b1
mov al, byte [esi + 0x11e]
cmp al, 2
jne 0x481598
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x4815b1
cmp al, 6
je 0x4815b1
dec dword [esi + 0x34]
jmp 0x4815b1
cmp al, 1
jne 0x4815b1
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x4815ad
cmp al, 6
je 0x4815ad
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 + 0x11e], 1
jne 0x4816ea
mov ecx, dword [eax + 0x2c]
mov byte [ecx], 0x20
mov eax, dword [ebp + 0xc]
inc dword [eax + 0x2c]
jmp 0x4816ea
call fcn.00489a70
add esp, 8
test eax, eax
je 0x481607
push esi
push 0xc0000026
push 0xc0000026
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, byte [esi + 0x11c]
dec eax
cmp eax, 6
ja case.default.0x481618
jmp dword [eax*4 + 0x4817ec]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x481636
mov byte [eax + 2], 1
mov edx, dword [esi + 0x30]
mov byte [edx + 3], 0
mov eax, dword [esi + 0x30]
jmp 0x481647
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 + 0xb4]
add eax, 4
add ecx, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ecx
jmp 0x4816ea
mov eax, dword [esi + 0x30]
test eax, eax
je 0x48166c
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x481675
mov edx, dword [esi + 0x28]
add edx, 4
mov dword [esi + 0x2c], edx
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0x2c]
lea edx, [eax + ecx - 8]
mov dword [esi + 0x34], edx
jmp 0x4816ea
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x481691
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0xb4]
mov edx, eax
mov dword [esi + 0x2c], eax
lea eax, [ecx + edx - 1]
mov dword [esi + 0x34], eax
jmp 0x4816ea
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4816bc
mov edx, dword [esi + 0xb4]
mov dword [esi + 0x2c], eax
add edx, eax
mov dword [esi + 0x34], edx
jmp 0x4816ea
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0xb4]
mov eax, ecx
mov dword [esi + 0x2c], ecx
add edx, eax
mov dword [esi + 0x34], edx
jmp 0x4816ea
push 0x25c
push str.E:_forrtl_build_for_stop.c
push 2
push 0xc0000008
call fcn.00482080
add esp, 0x10
mov ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
jle 0x48170a
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 0x4816f8
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
jle 0x48172e
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 0x48171b
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 + 0x128]
test ch, 1
je 0x481758
call fcn.00488a00
jmp 0x48175d
call fcn.00488600
add esp, 4
test eax, eax
je 0x48177b
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push eax
push 1
call fcn.004820b0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xbc]
push eax
call fcn.00485c70
add esp, 4
call fcn.00489db0
mov eax, dword [0x3f5a180]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [0x3f567d8], 0
test eax, eax
je 0x4817bf
mov ecx, esi
dec ecx
neg ecx
sbb ecx, ecx
not ecx
and ecx, edi
push ecx
call fcn.004aa240
add esp, 4
dec esi
neg esi
sbb esi, esi
not esi
and esi, edi
push esi
call fcn.0049ef87
mov edi, edi
xlatb
adc al, 72
add byte [esp + edx + 0x15210048], cl
dec eax
add byte [esp + edx + 0x14d70048], cl
dec eax
add byte [ecx - 0x46ffb7ec], bh
adc al, 0x48
add byte [ebp + 0x5d004816], ah
push ss
dec eax
add byte [edi], bl
push ss
dec eax
add byte [ebp + 0x16], bl
dec eax
add byte [ebp - 0x78ffb7ea], ah
push ss
dec eax
add byte [edi - 0x6fffb7ea], al
nop
nop
nop
nop
nop
nop
nop