Function at 0x43a7c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521c21
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x595be0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x22c], 2
mov eax, dword [ebp - 0x220]
cmp dword [eax], 0xffffffff
jne 0x43a812
mov ecx, dword [ebp - 0x220]
cmp dword [ecx + 4], 0xffffffff
je 0x43a817
jmp 0x43abdb
lea ecx, [ebp - 0x21c]
call fcn.0042a230
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
and edx, 0x40000000
je 0x43a84a
mov eax, dword [ebp + 0xc]
and eax, 0x80000000
jne 0x43a84a
mov ecx, dword [ebp + 0xc]
or ecx, 0x80000000
mov dword [ebp + 0xc], ecx
movzx edx, byte [ebp + 0x20]
test edx, edx
je 0x43a869
mov eax, dword [ebp + 0xc]
or eax, 0x80000000
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
or ecx, 0x40000000
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x220]
call fcn.0043b590
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x43a9f8
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x43a8b3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43abdb
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00428d50
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0043b7a0
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
jne 0x43a8f8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43abdb
mov eax, dword [ebp - 0x224]
push eax
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0043b7f0
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x250], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x250]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0042d650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00428a40
movzx ecx, byte [ebp + 0x1c]
test ecx, ecx
je 0x43a9d7
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0043b7a0
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xffffffff
jne 0x43a987
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43abdb
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0043b7f0
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x23c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x21c]
call fcn.0042d650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.00428a40
push 0x5632b0
lea ecx, [ebp - 0x21c]
call fcn.00432aa0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00432aa0
jmp 0x43aa07
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00428d50
push 0
push 0x80
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
mov edx, dword [ebp - 0x220]
cmp dword [edx], 0xffffffff
jne 0x43ab57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], 0
movzx eax, byte [ebp + 0x24]
test eax, eax
jne 0x43aa93
cmp dword [ebp - 0x228], 5
jne 0x43aa93
mov dword [ebp - 0x22c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43abdb
cmp dword [ebp - 0x228], 5
je 0x43aaa9
cmp dword [ebp - 0x228], 0x20
jne 0x43ab2b
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x248], ecx
mov edx, dword [ebp - 0x230]
add edx, 1
mov dword [ebp - 0x230], edx
cmp dword [ebp - 0x248], 0xa
jge 0x43ab2b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x220]
mov dword [ecx], eax
mov edx, dword [ebp - 0x220]
cmp dword [edx], 0xffffffff
je 0x43ab1a
jmp 0x43ab2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x228], eax
jmp 0x43aa93
mov eax, dword [ebp - 0x220]
cmp dword [eax], 0xffffffff
jne 0x43ab57
mov dword [ebp - 0x22c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43abdb
push 0
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x234]
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0x234], 0xffffffff
jne 0x43ab9a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
jmp 0x43abdb
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x43abb7
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.0043ae70
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00428a40
xor edx, edx
jne 0x43a7fb
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fdc6a
mov esp, ebp
pop ebp
ret 0x20