Function at 0x420800
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0xb80
push ebx
mov ebx, dword [esp + 0xb88]
mov ecx, dword [ebx + 4]
test ecx, ecx
mov eax, 1
je 0x420824
cmp byte [ecx], 0x2d
jne 0x420824
mov eax, 2
cmp dword [ebx + eax*4], 0
jne 0x420843
mov eax, dword [ebx]
push 0
push 0
push eax
push 0
call fcn.0048bd90
add esp, 0x10
pop ebx
add esp, 0xb80
ret
push ebp
push esi
push edi
mov edi, dword [esp + 0xb98]
push 0
push 0x400
push edi
push eax
push ebx
call fcn.0051d080
mov esi, eax
add esp, 0x14
test esi, esi
jge 0x420881
mov ecx, dword [ebx]
push 3
push 0
push ecx
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb80
ret
push edi
push edi
call fcn.004222f0
add esp, 8
test eax, eax
jne 0x4208ab
mov edx, dword [ebx]
push 3
push 0
push edx
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb80
ret
mov eax, dword [ebx + esi*4 + 4]
inc esi
test eax, eax
jne 0x4208ce
push eax
push eax
mov eax, dword [ebx]
push eax
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb80
ret
push eax
call fcn.005d9a55
mov ecx, dword [ebx + esi*4]
push ecx
mov dword [esp + 0x24], eax
call fcn.005d9a5a
mov ebp, edx
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], eax
jg 0x4208f4
jl 0x42088f
test eax, eax
jb 0x42088f
lea eax, [esp + 0x75c]
push 0x432
push eax
call fcn.004232e0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.005da53c
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x77c]
push 0x5f506c
push eax
call fcn.005d9929
lea ecx, [esp + 0x784]
push ecx
call fcn.004256e0
lea edx, [esp + 0x354]
push 0x432
push edx
call fcn.004232e0
add esp, 0x34
push 0x400
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x22c]
push edx
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x338]
push edx
call fcn.005da53c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x340]
push 0x5f506c
push ecx
call fcn.005d9929
lea edx, [esp + 0x348]
push edx
call fcn.004256e0
lea eax, [esp + 0x34c]
push eax
lea ecx, [esp + 0x784]
push ecx
call fcn.005f1860
add esp, 0x2c
test eax, eax
jne 0x420aa1
lea edx, [esp + 0x75c]
push 1
push edx
call fcn.00423a00
add esp, 8
test edx, edx
jl 0x420aa1
jg 0x420a01
test eax, eax
jbe 0x420aa1
lea eax, [esp + 0x75c]
push 0
push eax
call fcn.00423a00
lea ecx, [esp + 0x1c]
mov edi, edx
mov edx, dword [esp + 0xba0]
mov esi, eax
xor eax, eax
push ecx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00423730
add esp, 0x10
test eax, eax
je 0x420a43
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esi, eax
adc edi, ecx
sub esi, 0x9c4000
sbb edi, 0
cmp ebp, edi
jl 0x420a9a
jg 0x420a58
cmp dword [esp + 0x20], esi
jb 0x420a9a
mov edx, dword [esp + 0xb98]
push edx
push 0
push 0x1260
call fcn.00424130
add esp, 8
push eax
push 0x643160
call fcn.005d9929
push 6
push 0
push 0x643160
push 0
call fcn.0048bd90
add esp, 0x1c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb80
ret
mov edi, dword [esp + 0xb98]
push 0x180
push 0x40
push 0x8109
push edi
call fcn.005f025f
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x420adf
mov eax, dword [esp + 0xb98]
mov ecx, dword [ebx]
push 4
push eax
push ecx
push 0
call fcn.0048bd90
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb80
ret
push edi
mov ebx, 1
call fcn.005db912
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x420b17
mov edx, dword [esp + 0x20]
push 0
push ebp
push edx
push esi
call fcn.0049d260
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x420b17
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x420b2e
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x420b30
push eax
push edi
call fcn.005f1d47
add esp, 8
cmp eax, 0xffffffff
je 0x420b30
xor ebx, ebx
push edi
call fcn.005e2d87
add esp, 4
test ebx, ebx
je 0x420b4a
mov eax, dword [esp + 0xb98]
push eax
jmp 0x420a60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xb80
ret