Function at 0x45c640
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4004c]
test eax, eax
je 0x45c867
xor edx, edx
push ebp
push 0x45c692
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
cmp dword [edx + 0x40058], 0
je 0x45c688
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x4c
mov ebx, dword [ebp - 4]
call dword [ebx + 0x40058]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c69c
call fcn.00412858
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0045b8e4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
xor ecx, ecx
push ebp
push 0x45c85d
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, 0x22
call fcn.004107c8
mov ebx, eax
test ebx, ebx
jge 0x45c6f1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, 0x22
mov edx, 0x10
call fcn.00410820
mov ebx, eax
test ebx, ebx
jge 0x45c702
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c867
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.004108bc
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
test eax, eax
jle 0x45c82c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4004c]
add edx, edi
cmp eax, edx
jge 0x45c82c
mov ecx, eax
mov esi, dword [ebp - 4]
sub ecx, dword [esi + 0x4004c]
sub ecx, edi
mov edx, eax
test edx, edx
jns 0x45c749
add edx, 7
sar edx, 3
cmp ecx, edx
jge 0x45c754
mov eax, edx
jmp 0x45c765
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4004c]
sub eax, edi
cmp edi, eax
jg 0x45c76b
mov eax, edi
mov dword [ebp - 0xc], eax
mov eax, 0x40000
call fcn.004041b8
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xc]
cmp edi, esi
jle 0x45c81e
mov eax, edi
sub eax, esi
cmp eax, 0x40000
jge 0x45c79a
mov eax, edi
sub eax, esi
mov dword [ebp - 0x18], eax
jmp 0x45c7a1
mov dword [ebp - 0x18], 0x40000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.004108bc
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00410864
cmp esi, dword [ebp - 0xc]
jne 0x45c7f8
mov eax, dword [0x4ad304]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x45c7e3
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4ad304]
call fcn.004069d8
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
call fcn.00404350
mov edx, esi
sub edx, dword [ebp - 0xc]
xor ecx, ecx
mov eax, ebx
call fcn.004108bc
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00410890
add esi, dword [ebp - 8]
cmp edi, esi
jg 0x45c786
mov eax, dword [ebp - 0x14]
call fcn.004041d4
push ebx
call sub.kernel32.dll_SetEndOfFile
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4004c]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x4c]
mov eax, ebx
call fcn.00410890
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4004c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c867
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret