Function at 0x4023c0
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
cmp dword [0x476388], 0
je 0x402692
mov eax, dword [0x476330]
mov esi, dword [eax]
test esi, esi
sete bl
cmp dword [0x476948], 0
je 0x402441
push dword [0x476a00]
call fcn.00408520
add esp, 4
push 0
push 0
push dword [0x47672c]
call fcn.0040b270
add esp, 0xc
test eax, eax
jne 0x402742
push 0
push 0
push 0
push dword [0x47672c]
call fcn.0040b5f0
add esp, 0x10
push dword [0x4763dc]
push dword [0x4763d8]
push 0x1000
call fcn.004084d0
add esp, 0xc
mov dword [0x476a00], eax
mov eax, dword [0x476a08]
cmp esi, 1
sbb ecx, ecx
or eax, dword [0x476a0c]
je 0x4025b7
cmp esi, 1
mov dword [esp], 0
sbb ecx, ecx
xor esi, esi
mov edx, ecx
jmp 0x4024a5
mov ecx, 0xffffffff
mov edx, 0xffffffff
mov edi, dword [esp]
mov eax, dword [0x476a08]
add esi, 1
mov ebp, dword [0x476a0c]
mov ebx, ecx
adc edi, 0
and ebx, edx
cmp ebx, 0xffffffff
mov dword [esp], edi
sete bl
cmp esi, eax
sbb edi, ebp
jae 0x4025bd
test bl, 1
jne 0x4024d3
mov ebx, dword [esp]
mov eax, esi
sub eax, ecx
sbb ebx, edx
cmp eax, 0x40000
mov ebp, ebx
sbb ebp, 0
jb 0x402530
push 0
push ebx
push eax
call fcn.00402750
add esp, 0xc
test eax, eax
jne 0x402716
mov eax, dword [0x476330]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x402470
cmp ecx, dword [0x476334]
mov edx, dword [esp]
mov ecx, esi
jne 0x40247a
mov dword [eax + esi*4], 0
push esi
push 0
push 0x1000
push 0
push dword [0x476a00]
call fcn.00408560
add esp, 0x14
mov ecx, 0xffffffff
test eax, eax
mov edx, 0xffffffff
je 0x40247a
jmp 0x40271d
mov ebp, dword [0x476330]
mov ebp, dword [ebp + esi*4]
test ebp, ebp
je 0x40254a
cmp ebp, dword [0x476334]
jne 0x40247a
push 0
push ebx
push eax
call fcn.00402750
add esp, 0xc
test eax, eax
jne 0x402724
mov eax, dword [0x476330]
mov ecx, 0xffffffff
mov edx, dword [eax + esi*4]
cmp edx, dword [0x476334]
mov edx, 0xffffffff
jne 0x40247a
mov dword [eax + esi*4], 0
push esi
push 0
push 0x1000
push 0
push dword [0x476a00]
call fcn.00408560
add esp, 0x14
mov ecx, 0xffffffff
test eax, eax
mov edx, 0xffffffff
je 0x40247a
push 0x2ef
jmp 0x402729
xor eax, eax
mov edx, ecx
xor ebp, ebp
test bl, bl
jne 0x4025d9
sub eax, ecx
sbb ebp, edx
push 0
push ebp
push eax
call fcn.00402750
add esp, 0xc
test eax, eax
jne 0x402749
push 0
push 1
push 0
push dword [0x47672c]
push dword [0x476a00]
call fcn.004086a0
add esp, 0x14
cmp dword [0x476388], 0
je 0x402692
mov eax, dword [0x476a00]
test eax, eax
je 0x40261c
push eax
call fcn.00408520
add esp, 4
mov dword [0x476a00], 0
mov eax, dword [0x476a08]
or eax, dword [0x476a0c]
mov eax, dword [0x476330]
je 0x402667
mov esi, 1
nop word cs:[eax + eax]
nop dword [eax]
push dword [eax + esi*4 - 4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
cmp esi, dword [0x476a08]
mov eax, 0
lea esi, [esi + 1]
sbb eax, dword [0x476a0c]
mov eax, dword [0x476330]
jb 0x402640
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [0x476330], 0
push dword [0x476334]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [0x476334], 0
cmp dword [0x476928], 0
jle 0x4026e4
xor edi, edi
mov ebx, 0x476728
nop word cs:[eax + eax]
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 0x4026e8
push dword [ebx]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push dword [ebx + 0x3c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
inc edi
add ebx, 0x40
cmp edi, dword [0x476928]
jl 0x4026b0
jmp 0x4026fe
xor esi, esi
jmp 0x4026fe
cmp dword [0x476938], 0
js 0x4026fe
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 [0x47671c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x2d6
jmp 0x402729
push 0x2e1
jmp 0x402729
push 0x2eb
push str.f2fs_finalize_device
push str._ASSERT____s:_4d___ret_n
call fcn.00402250
add esp, 0xc
push 0xffffffffffffffff
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push 0x2cb
jmp 0x402729
push 0x2f8
jmp 0x402729