Function at 0x45e060
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x559c78
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b2ae0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0045dea0
add esp, 8
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov eax, dword [0x5c0084]
mov dword [0x5c008c], ebx
cmp eax, ebx
je 0x45e0d7
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00442990
push edx
push 0x18
push eax
call fcn.00517315
push esi
call fcn.004efc12
add esp, 4
mov dword [0x5c0084], ebx
mov dword [0x5c0088], ebx
lea ecx, [esp + 0x38]
call fcn.00442850
push eax
mov eax, dword [esp + 0x68]
push 0x45e010
push eax
mov byte [esp + 0x64], 1
call fcn.00429e70
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp eax, ebx
je 0x45e109
push eax
call fcn.004efc12
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.004efc12
mov eax, dword [0x5c008c]
add esp, 4
cmp eax, ebx
ja 0x45e13b
mov edx, dword [esp + 0x14]
push edx
call dword [0x56039c]
jmp 0x45e2eb
xor edi, edi
xor esi, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x58], 2
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jbe 0x45e2b3
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov ecx, dword [0x5c0084]
mov edx, dword [ebp + ecx + 0x10]
mov eax, dword [ebp + ecx + 0x10]
sub edx, dword [ebp + ecx + 0xc]
sub eax, dword [ebp + ecx + 0xc]
add ebp, ecx
sar eax, 2
sar edx, 2
mov dword [esp + 0x18], eax
test edx, edx
ja 0x45e191
call fcn.005177ee
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
add eax, eax
add eax, eax
lea ebp, [esi + 4]
cmp ebx, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
jge 0x45e1f1
test ebx, ebx
jne 0x45e1b0
mov ebx, 0x10
cmp ebx, ebp
jge 0x45e1ba
add ebx, ebx
cmp ebx, ebp
jl 0x45e1b4
push ebx
call fcn.004efc07
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
test edi, edi
je 0x45e1e7
push esi
push edi
push eax
call fcn.0051fbd0
add esp, 0xc
push edi
call fcn.004efc12
mov eax, dword [esp + 0x28]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x1c]
or edx, 0x42000000
mov dword [esi + edi], edx
lea esi, [ebp + 4]
cmp ebx, esi
mov dword [esp + 0x30], ebp
jge 0x45e253
test ebx, ebx
jne 0x45e212
mov ebx, 0x10
cmp ebx, esi
jge 0x45e21c
add ebx, ebx
cmp ebx, esi
jl 0x45e216
push ebx
call fcn.004efc07
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
test edi, edi
je 0x45e249
push ebp
push edi
push eax
call fcn.0051fbd0
add esp, 0xc
push edi
call fcn.004efc12
mov eax, dword [esp + 0x28]
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], edi
mov dword [edi + ebp], eax
mov dword [esp + 0x30], esi
test eax, eax
jbe 0x45e291
add eax, esi
lea edi, [esp + 0x2c]
call fcn.004d9cb0
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push ebx
lea eax, [esi + edi]
push ecx
push eax
call fcn.0051fbd0
add esp, 0xc
add esi, ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
inc eax
add ebp, 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
cmp eax, dword [0x5c008c]
jb 0x45e162
xor ebx, ebx
mov edx, dword [esp + 0x14]
push 0x571dd0
push edx
call fcn.00518533
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x45e2de
push ebp
push 1
push esi
push edi
call fcn.005183eb
push ebp
call fcn.005185c1
add esp, 0x14
cmp edi, ebx
je 0x45e2eb
push edi
call fcn.004efc12
add esp, 4
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45e313
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret