Function at 0x409740
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x68]
mov edx, dword [ebp + 0x22c]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x74]
push esi
push edi
push eax
push ecx
push str.Vacating__I64u_clusters_starting_at_LCN_I64u
push 0
push 5
call edx
add esp, 0x1c
cmp esi, dword [ebp + 0x17c]
jb 0x40979f
ja 0x409784
cmp edi, dword [ebp + 0x178]
jb 0x40979f
mov eax, dword [ebp + 0x22c]
push str.Error:_trying_to_vacate_an_area_beyond_the_end_of_the_disk.
push 0
push 1
call eax
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x60
ret
mov ecx, dword [ebp + 4]
push ebx
mov ebx, edi
add ebx, dword [esp + 0x80]
mov eax, esi
adc eax, dword [esp + 0x84]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x4097d9
mov edx, dword [ebp + 0x130]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x134]
mov dword [esp + 0x1c], edx
cmp ecx, 1
jne 0x4097f2
mov edx, dword [ebp + 0x138]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x13c]
mov dword [esp + 0x1c], edx
cmp ecx, 2
jne 0x40986d
mov edi, dword [ebp + 0x17c]
mov esi, dword [ebp + 0x178]
mov eax, edi
mov ecx, edi
and eax, 0x7fffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], esi
fild qword [esp + 0x58]
and ecx, 0x80000000
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], 0
fild qword [esp + 0x58]
fchs
faddp st(1)
fmul qword [0x424970]
fmul qword [ebp + 0x108]
fdiv qword [0x42adb8]
call fcn.00412d96
sub esi, eax
mov eax, dword [esp + 0x64]
sbb edi, edx
sub esi, dword [ebp + 0x188]
sbb edi, dword [ebp + 0x18c]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x78]
cmp dword [esp + 0x1c], eax
ja 0x409883
jb 0x40987b
cmp dword [esp + 0x18], ebx
jae 0x409883
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x22c]
push eax
push ecx
push str.MoveTo___I64u
push 0
push 5
call edx
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0x14
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
cmp dword [ecx], eax
jne 0x409d95
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
mov edi, edi
mov ecx, dword [ebp + 0x110]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
test ecx, ecx
je 0x409ca9
mov eax, dword [ecx + 4]
test eax, eax
je 0x409909
lea ecx, [ecx]
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
jne 0x409900
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
mov eax, 1
cmp dword [ecx + 0x60], eax
je 0x409a14
cmp dword [ecx + 0x64], eax
je 0x409a14
mov edx, dword [ecx + 0x28]
or edx, dword [ecx + 0x2c]
je 0x409a14
mov eax, dword [ecx + 0x48]
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
cmp eax, edx
je 0x4099fa
mov edi, edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebp, ecx
and ebp, edx
cmp ebp, 0xffffffff
je 0x4099dd
cmp edx, dword [esp + 0x44]
jb 0x4099c9
ja 0x409970
cmp ecx, dword [esp + 0x40]
jb 0x4099c9
cmp dword [esp + 0x24], edx
ja 0x409985
jb 0x40997e
cmp dword [esp + 0x20], ecx
ja 0x409985
cmp dword [esp + 0x14], 0
jne 0x4099c9
mov esi, dword [esp + 0x10]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x14], esi
mov esi, dword [eax + 8]
sub esi, ebx
sbb edi, dword [esp + 0x54]
add esi, ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
adc edi, edx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x5c], edx
cmp dword [esp + 0x20], ecx
jne 0x4099c9
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x24], edx
je 0x4099f2
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
sub ecx, ebx
sbb edx, dword [esp + 0x54]
add dword [esp + 0x30], ecx
adc dword [esp + 0x34], edx
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x54], ecx
test eax, eax
jne 0x409950
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebx, eax
or ebx, edx
je 0x409a14
cmp eax, dword [esp + 0x78]
jne 0x409a14
cmp edx, dword [esp + 0x7c]
je 0x409a52
mov eax, ecx
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x409a37
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x409a2f
mov eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x409a26
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x409a4a
mov ecx, eax
mov eax, dword [eax]
test eax, eax
je 0x409a44
cmp dword [eax + 8], ecx
je 0x409a37
mov ecx, eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x409910
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409ca9
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + 0x22c]
push eax
push ecx
push str.Data_found_at_LCN_I64u___s
push 0
push 5
call edx
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x68]
push edx
push 0
push 1
push 0
push 0
push 0
push 0
push ebx
push eax
push ebp
call fcn.00405c90
add esp, 0x48
test eax, eax
je 0x409ccf
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
cmp ecx, eax
jb 0x409cf1
ja 0x409adc
cmp edx, dword [esp + 0x20]
jb 0x409cf1
cmp edx, dword [esp + 0x20]
jne 0x409b1c
cmp ecx, eax
jne 0x409b1c
mov ebx, dword [esp + 0x4c]
mov eax, edx
sub eax, dword [esp + 0x48]
mov dword [esp + 0x68], eax
mov eax, ecx
sbb eax, ebx
cmp eax, dword [esp + 0x84]
ja 0x409d23
jb 0x409b18
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x80]
jae 0x409d23
mov ebx, dword [esp + 0x7c]
cmp ebx, dword [esp + 0x1c]
ja 0x409d61
jb 0x409b36
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esp + 0x18]
jae 0x409d61
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebp, esi
sub ebp, dword [esp + 0x20]
mov ebx, edi
sbb ebx, dword [esp + 0x24]
sub ecx, dword [esp + 0x28]
sbb eax, dword [esp + 0x2c]
cmp ebx, eax
jb 0x409c1a
ja 0x409b64
cmp ebp, ecx
jb 0x409c1a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x74]
cmp edx, dword [eax + 0x17c]
ja 0x409bd7
mov ecx, dword [esp + 0x18]
jb 0x409b82
cmp ecx, dword [eax + 0x178]
jae 0x409bd7
cmp edx, edi
jb 0x409bd7
ja 0x409b8c
cmp ecx, esi
jb 0x409bd7
push edx
mov edx, dword [eax + 0x22c]
push ecx
push str.Finding_gap_above_MoveTo_I64u
push 0
push 5
call edx
mov edx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x94]
push 0
push 1
push ebx
push ebp
push 0
push 0
push edx
push eax
push ecx
call fcn.00405c90
add esp, 0x44
test eax, eax
jne 0x409c1a
mov eax, dword [esp + 0x74]
mov edx, dword [eax + 0x22c]
push edi
push esi
push str.Finding_gap_from_end_of_disk_above_BiggerEnd_I64u
push 0
push 5
call edx
mov edx, dword [esp + 0x88]
push 0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
push 1
push 1
push ebx
push ebp
push 0
push 0
push edi
push esi
push edx
call fcn.00405c90
add esp, 0x44
test eax, eax
je 0x409d7d
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
push 0
push ebx
push ebp
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x8c]
push eax
push ecx
push edx
call fcn.004070f0
add esp, 0x24
cmp eax, 1
jne 0x409c7a
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x1c]
ja 0x409c6e
jb 0x409c62
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x18]
jae 0x409c6e
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
add dword [esp + 0x28], ebp
adc eax, ebx
mov dword [esp + 0x2c], eax
jmp 0x409c8a
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 8]
cmp dword [eax], 0
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
jne 0x409d95
mov ebp, edx
jmp 0x4098d0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [ebp + 0x22c]
push ecx
push edx
push str.No_data_found_above_LCN_I64u
push 0
push 5
call eax
add esp, 0x14
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret
mov ecx, dword [esp + 0x78]
mov edx, dword [ebp + 0x22c]
push ebx
push ecx
push str.No_gaps_found_above_LCN_I64u
push 0
push 5
call edx
add esp, 0x14
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov edi, edx
sub edi, eax
mov ebx, ecx
sbb ebx, esi
push ebx
push edi
push ecx
push edx
push esi
push eax
mov eax, dword [ebp + 0x22c]
push str.Cannot_enlarge_the_gap_from__I64u_to__I64u___I64u_clusters__any_further.
push 0
push 5
call eax
add esp, 0x24
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x50]
mov esi, edx
sub esi, eax
mov edi, ecx
sbb edi, ebx
push edi
push esi
push ecx
mov ecx, dword [ebp + 0x22c]
push edx
push ebx
push eax
push str.Finished_vacating__the_gap_from__I64u_to__I64u___I64u_clusters__is_now_bigger_than__I64u_clusters.
push 0
push 5
call ecx
add esp, 0x2c
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret
mov edx, dword [ebp + 0x22c]
push str.Stopping_vacate_because_of_possible_worm.
push 0
push 5
call edx
add esp, 0xc
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x22c]
push str.No_gap_found.
push 0
push 5
call ecx
add esp, 0xc
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret