Function at 0x544c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1028], ebx
mov dword [ebp - 0x102c], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x544fc6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
jbe 0x544fa0
mov eax, dword [ebp - 8]
and eax, 0x1ff
test eax, eax
jne 0x544fa0
test esi, esi
jge 0x544d0d
cmp dword [ebp + 0xc], 0
je 0x544cfd
mov eax, dword [ebp + 0xc]
call fcn.00544bf8
mov esi, eax
jmp 0x544d0d
cmp byte [ebp - 1], 0
je 0x544d0d
mov al, byte [ebp - 1]
call fcn.00544b20
mov esi, eax
test esi, esi
jle 0x544fa0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1024], esi
mov byte [ebp - 0x1020], 0
lea edx, [ebp - 0x1024]
xor ecx, ecx
mov eax, 0x544fe4
call fcn.0040aca8
add ebx, 0x200
dec ebx
shr ebx, 9
mov eax, ebx
shl eax, 9
mov ebx, eax
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404a44
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x544f5c
xor eax, eax
push ebp
push 0x544f55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00544c54
mov edi, eax
test edi, edi
jbe 0x544f34
mov eax, dword [ebp - 8]
xor edx, edx
div edi
test edx, edx
jne 0x544e64
cmp edi, ebx
jb 0x544dab
mov dword [ebp - 0x1c], edi
jmp 0x544dc6
mov eax, ebx
xor edx, edx
div edi
test edx, edx
jne 0x544dba
mov dword [ebp - 0x1c], ebx
jmp 0x544dc6
mov eax, ebx
xor edx, edx
div edi
inc eax
imul edi
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00409ee4
cmp ebx, dword [ebp - 0x1c]
jne 0x544ded
mov edx, dword [ebp + 0x10]
mov ecx, ebx
mov eax, dword [ebp - 0x14]
call fcn.00409e8c
mov dword [ebp - 0xc], eax
jmp 0x544f34
cmp dword [ebp - 0x1c], 0x1000
ja 0x544e1f
lea edx, [ebp - 0x101c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00409e8c
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x101c]
mov ecx, ebx
call fcn.00402a14
jmp 0x544f34
mov edx, dword [ebp + 0x10]
mov ecx, 0x1000
mov eax, dword [ebp - 0x14]
call fcn.00409e8c
mov edi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, 0x1000
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, ebx
sub ecx, 0x1000
mov edx, dword [ebp - 8]
add edx, 0x1000
mov al, byte [ebp - 1]
call fcn.00544c90
add edi, eax
mov dword [ebp - 0xc], edi
jmp 0x544f34
mov eax, dword [ebp - 8]
xor edx, edx
div edi
imul edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
add eax, ebx
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00409ee4
mov eax, dword [ebp - 0x1c]
xor edx, edx
div edi
test edx, edx
je 0x544ea0
mov eax, dword [ebp - 0x1c]
xor edx, edx
div edi
inc eax
imul edi
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1000
ja 0x544ed6
lea edx, [ebp - 0x101c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00409e8c
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
lea eax, [ebp + eax - 0x101c]
mov ecx, ebx
call fcn.00402a14
jmp 0x544f34
lea edx, [ebp - 0x101c]
mov ecx, 0x1000
mov eax, dword [ebp - 0x14]
call fcn.00409e8c
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x18]
add edi, 0x1000
sub edi, dword [ebp - 8]
mov ecx, edi
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
lea eax, [ebp + eax - 0x101c]
call fcn.00402a14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
mov ecx, ebx
sub ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0x1000
mov al, byte [ebp - 1]
call fcn.00544c90
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jle 0x544f3e
mov dword [ebp - 0xc], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544fa0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
push 0x545000
push dword [ebp - 0x10]
push 0x545014
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x102c]
call fcn.0040dbd8
push dword [ebp - 0x102c]
lea eax, [ebp - 0x1028]
mov edx, 4
call fcn.00404904
mov eax, dword [ebp - 0x1028]
call fcn.00404a44
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544fcd
lea eax, [ebp - 0x102c]
mov edx, 2
call fcn.00404598
lea eax, [ebp - 0x10]
call fcn.00404574
ret