Function at 0x538400
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [0x595e70]
push ebx
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [ebp - 4], esi
mov eax, 1
jne 0x538422
mov dword [0x595e70], eax
cmp dword [0x595e74], esi
je 0x538436
push esi
mov dword [0x595e70], esi
call fcn.00560b4a
mov ebx, dword [ebp + 0x10]
mov dword [0x595e74], eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x53847f
test ebx, 0x8000000
jne 0x53847f
call fcn.00550ae0
mov eax, dword [0x599834]
mov dword [0x595e70], esi
cmp eax, esi
je 0x538479
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.0056b4d0
add esp, 4
push esi
call fcn.00560b4a
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 0x5384c3
cmp eax, esi
jne 0x5384aa
mov dword [ebp - 8], str.Stop___Program_terminated.
mov dword [ebp + 0x10], 0x1a
cmp dword [ebp + 0x18], esi
je 0x5384c3
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 0x5384ce
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.00546610
add esp, 0x10
cmp eax, esi
je 0x53850d
test bl, 1
je 0x5384f9
pop edi
pop esi
and eax, 0xffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push 0x57f544
push ecx
push 2
push eax
call fcn.005430d0
add esp, 0x10
mov esi, dword [ebp + 0xc]
test byte [esi + 0x128], 1
jne 0x5386d0
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.00532af0
add esp, 0x10
test eax, eax
je 0x5386cd
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push eax
push 2
call fcn.00543100
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 0x53885f
call fcn.0054c6e0
add esp, 8
test eax, eax
jne 0x53886b
mov cl, byte [esi + 0x11c]
movsx eax, cl
dec eax
cmp eax, 6
ja case.default.0x538705
jmp dword [eax*4 + 0x538a50]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x53871b
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x538724
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 0x5387d6
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x538743
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 0x5387d6
mov eax, dword [esi + 0x30]
test eax, eax
je 0x538763
mov dword [esi + 0x2c], eax
jmp 0x538769
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 0x5387fb
mov eax, dword [esi + 0x128]
test ah, 1
je 0x5387d6
test ah, 0x10
je 0x5387d6
cmp cl, 1
jne 0x5387d6
add edx, 0xfffffffe
mov dword [esi + 0x34], edx
jmp 0x5387d6
push esi
push 0xc000002c
push 0xc000002c
push 1
call fcn.00543100
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x249
push 0x57f54c
push 2
push 0xc0000008
call fcn.005430d0
add esp, 0x10
test dword [esi + 0x12c], 0x8000000
je 0x5387fb
mov eax, dword [esi + 0x128]
test ah, 1
je 0x5387fb
test ah, 0x10
je 0x5387fb
cmp byte [esi + 0x11c], 1
je 0x538831
mov al, byte [esi + 0x11e]
cmp al, 2
jne 0x538818
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x538831
cmp al, 6
je 0x538831
dec dword [esi + 0x34]
jmp 0x538831
cmp al, 1
jne 0x538831
mov al, byte [esi + 0x11c]
cmp al, 7
je 0x53882d
cmp al, 6
je 0x53882d
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 0x53896a
mov ecx, dword [eax + 0x2c]
mov byte [ecx], 0x20
mov eax, dword [ebp + 0xc]
inc dword [eax + 0x2c]
jmp 0x53896a
call fcn.0054c6e0
add esp, 8
test eax, eax
je 0x538887
push esi
push 0xc0000026
push 0xc0000026
push 1
call fcn.00543100
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.0x538898
jmp dword [eax*4 + 0x538a6c]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5388b6
mov byte [eax + 2], 1
mov edx, dword [esi + 0x30]
mov byte [edx + 3], 0
mov eax, dword [esi + 0x30]
jmp 0x5388c7
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 0x53896a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x5388ec
add eax, 4
mov dword [esi + 0x2c], eax
jmp 0x5388f5
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 0x53896a
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x538911
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 0x53896a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x53893c
mov edx, dword [esi + 0xb4]
mov dword [esi + 0x2c], eax
add edx, eax
mov dword [esi + 0x34], edx
jmp 0x53896a
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 0x53896a
push 0x24f
push str.E:_forrtl_build_for_stop.c
push 2
push 0xc0000008
call fcn.005430d0
add esp, 0x10
mov ecx, dword [ebp + 0x10]
xor eax, eax
test ecx, ecx
jle 0x53898a
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 0x538978
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
jle 0x5389ae
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 0x53899b
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 0x5389d8
call fcn.0054b770
jmp 0x5389dd
call fcn.0054b370
add esp, 4
test eax, eax
je 0x5389fb
mov ecx, dword [ebp + 0xc]
push ecx
push eax
push eax
push 1
call fcn.00543100
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.00546b90
add esp, 4
call fcn.00550ae0
mov eax, dword [0x599834]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [0x595e70], 0
test eax, eax
je 0x538a3f
mov ecx, esi
dec ecx
neg ecx
sbb ecx, ecx
not ecx
and ecx, edi
push ecx
call fcn.0056b4d0
add esp, 4
dec esi
neg esi
sbb esi, esi
not esi
and esi, edi
push esi
call fcn.00560b4a
mov edi, edi
push edi
xchg dword [ebx], edx
or al, 0x87
push ebx
add byte [ecx + 0xc005387], ah
xchg dword [ebx], edx
push edi
xchg dword [ebx], edx
cmp dword [edi - 0x78c6ffad], eax
push ebx
add byte [0xdd005389], ah
mov byte [ebx], dl
lahf
mov byte [ebx], dl
fisttp qword [eax - 0x76daffad]
push ebx
add byte [edi], al
mov dword [ebx], edx
pop es
mov dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ecx
push eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
call fcn.00538aad
pop eax
pop ecx
pop esi
pop edi
pop ebx
leave
ret