Function at 0x402630
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
cmp dword [0x471388], 0
je 0x4028ed
mov eax, dword [0x471330]
mov edi, dword [eax]
cmp dword [0x4719c8], 0
je 0x4026ab
push dword [0x471ae0]
call fcn.00409b50
add esp, 4
push 0
push 0
push dword [0x47172c]
call fcn.0040c910
add esp, 0xc
test eax, eax
jne 0x4029b0
push 0
push 0
push 0
push dword [0x47172c]
call fcn.0040cc90
add esp, 0x10
push dword [0x4713dc]
push dword [0x4713d8]
push 0x1000
call fcn.00409b00
add esp, 0xc
mov dword [0x471ae0], eax
xor eax, eax
cmp edi, 1
mov ecx, 0
sbb ecx, ecx
mov edx, dword [0x471ae8]
or edx, dword [0x471aec]
je 0x40281c
xor esi, esi
cmp edi, 1
mov ecx, 0
sbb ecx, ecx
xor edi, edi
mov edx, ecx
jmp 0x402707
mov ecx, 0xffffffff
mov edx, 0xffffffff
add esi, 1
adc edi, 0
mov ebx, dword [0x471aec]
mov eax, dword [0x471ae8]
cmp esi, eax
mov ebp, edi
sbb ebp, ebx
jae 0x402820
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
je 0x402738
mov eax, esi
sub eax, ecx
mov ebx, edi
sbb ebx, edx
cmp eax, 0x40000
mov ebp, ebx
sbb ebp, 0
jb 0x402790
push 0
push ebx
push eax
call fcn.004029d0
add esp, 0xc
test eax, eax
jne 0x402975
mov eax, dword [0x471330]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x4026e0
mov ecx, esi
mov edx, edi
cmp ebx, dword [0x471334]
jne 0x4026ea
mov dword [eax + esi*4], 0
push esi
push 0
push 0x1000
push 0
push dword [0x471ae0]
call fcn.00409b90
add esp, 0x14
mov ecx, 0xffffffff
mov edx, 0xffffffff
test eax, eax
je 0x4026ea
jmp 0x402981
mov ebp, dword [0x471330]
mov ebp, dword [ebp + esi*4]
test ebp, ebp
je 0x4027aa
cmp ebp, dword [0x471334]
jne 0x4026ea
push 0
push ebx
push eax
call fcn.004029d0
add esp, 0xc
test eax, eax
jne 0x40298d
mov eax, dword [0x471330]
mov ebx, dword [eax + esi*4]
mov ecx, 0xffffffff
mov edx, 0xffffffff
cmp ebx, dword [0x471334]
jne 0x4026ea
mov dword [eax + esi*4], 0
push esi
push 0
push 0x1000
push 0
push dword [0x471ae0]
call fcn.00409b90
add esp, 0x14
mov ecx, 0xffffffff
mov edx, 0xffffffff
test eax, eax
je 0x4026ea
push str._ret
push 0x303
jmp 0x402997
mov edx, ecx
xor ebx, ebx
mov esi, ecx
and esi, edx
cmp esi, 0xffffffff
je 0x402841
sub eax, ecx
sbb ebx, edx
push 0
push ebx
push eax
call fcn.004029d0
add esp, 0xc
test eax, eax
jne 0x4029bc
push 0
push 1
push 0
push dword [0x47172c]
push dword [0x471ae0]
call fcn.00409cd0
add esp, 0x14
cmp dword [0x471388], 0
je 0x4028ed
mov eax, dword [0x471ae0]
test eax, eax
je 0x402884
push eax
call fcn.00409b50
add esp, 4
mov dword [0x471ae0], 0
mov eax, dword [0x471ae8]
or eax, dword [0x471aec]
mov esi, dword [0x471330]
je 0x4028c2
mov edi, 1
nop dword [eax]
push dword [esi + edi*4 - 4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
cmp edi, dword [0x471ae8]
lea edi, [edi + 1]
mov eax, 0
sbb eax, dword [0x471aec]
jb 0x4028a0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [0x471330], 0
push dword [0x471334]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [0x471334], 0
cmp dword [0x4719a8], 0
jle 0x402934
xor edi, edi
mov ebx, 0x471728
nop dword [eax]
push dword [ebx + 4]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov esi, eax
test eax, eax
js 0x402938
push dword [ebx]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push dword [ebx + 0x48]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
inc edi
add ebx, 0x50
cmp edi, dword [0x4719a8]
jl 0x402900
jmp 0x402960
xor esi, esi
jmp 0x402960
cmp dword [0x4719b8], 0
js 0x402960
cmp dword [0x471a04], 0
jne 0x402960
cmp dword [0x471a08], 0
jne 0x402960
push str._tError:_Failed_to_close_device_file___
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
push dword [0x47171c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push str._ret
push 0x2ea
jmp 0x402997
push str._ret
push 0x2f5
jmp 0x402997
push str._ret
push 0x2ff
push str.f2fs_finalize_device
push section..rdata
call fcn.004024d0
add esp, 0x10
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push str._ret
push 0x2df
jmp 0x402997
push str._ret
push 0x30c
jmp 0x402997