Function at 0x45f2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4eec64]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, 4
jle 0x45f37e
cmp eax, 1
jge 0x45f2ed
push 0x80070057
call fcn.00421000
movzx edx, word [ecx + 2]
cmp dx, 0x3a
jne 0x45f37e
cmp eax, 2
jge 0x45f30a
push 0x80070057
call fcn.00421000
movzx edx, word [ecx + 4]
cmp dx, 0x5c
jne 0x45f37e
cmp eax, 4
jle 0x45f37e
add ecx, 8
push 0x7e
push ecx
call fcn.004a536a
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
je 0x45f37e
sub eax, ecx
sar eax, 1
js 0x45f37e
push 0x514
call fcn.004a5222
add esp, 4
mov esi, eax
mov eax, dword [ebp + 0xc]
push 0x514
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x45f372
test esi, esi
jne 0x45f35f
xor eax, eax
jmp 0x45f368
push esi
call fcn.004a4b1a
add esp, 4
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.00423f4a
push esi
call fcn.004a5105
mov ecx, dword [ebp + 0xc]
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
cmp dword [ecx - 0xc], 2
jle 0x45f494
xor edi, edi
mov dword [ebp - 0x10], 4
lea esp, [esp]
mov edx, dword [ebx + 0x4f02ec]
mov eax, edx
lea esi, [eax + 2]
jmp 0x45f3b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f3b0
mov ecx, dword [ebp - 0x10]
sub eax, esi
mov esi, dword [ebp - 0x18]
sar eax, 1
add eax, 0xfffffffe
push eax
add edx, 4
add esi, ecx
push edx
push esi
call fcn.004a56d5
add esp, 0xc
test eax, eax
jne 0x45f47e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
movzx eax, word [edx + eax - 4]
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x45f3f7
add eax, 0xffffffe0
movzx edx, ax
mov eax, dword [ebx + 0x4f02ec]
movzx ecx, word [eax]
lea ebx, [ecx - 0x61]
cmp bx, 0x19
ja 0x45f40f
add ecx, 0xffffffe0
movzx ecx, cx
cmp dx, cx
jne 0x45f47b
movzx ecx, word [esi - 2]
lea edx, [ecx - 0x61]
cmp dx, 0x19
ja 0x45f427
add ecx, 0xffffffe0
movzx edx, cx
movzx ecx, word [eax + 2]
lea esi, [ecx - 0x61]
cmp si, 0x19
ja 0x45f43a
add ecx, 0xffffffe0
movzx ecx, cx
cmp dx, cx
jne 0x45f47b
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45f445
sub eax, edx
push edi
lea ecx, [ebp + 0xc]
sar eax, 1
push ecx
call fcn.004234c5
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x4f02e0]
push edx
lea eax, [ebp + 0xc]
push eax
mov eax, edi
call fcn.004303c3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
jmp 0x45f481
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
add dword [ebp - 0x10], 2
inc edi
lea edx, [edi + 2]
cmp edx, eax
jl 0x45f3a0
add ebx, 0x10
cmp ebx, 0x220
mov dword [ebp - 0x14], ebx
jl 0x45f386
push 0x4d746c
push 0x4ca098
lea eax, [ebp + 0xc]
push eax
call fcn.00430449
push 0x4d7474
push 0x4ccb68
lea ecx, [ebp + 0xc]
push ecx
call fcn.00430449
push 0x4d747c
push 0x4cf08c
lea edx, [ebp + 0xc]
push edx
call fcn.00430449
push 0x4d7484
push 0x4ca5bc
lea eax, [ebp + 0xc]
push eax
call fcn.00430449
push 0x4d748c
push 0x4d7494
lea ecx, [ebp + 0xc]
push ecx
call fcn.00430449
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp + 0xc]
call fcn.0045fbe0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0045fad0
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov esi, dword [ebp + 0xc]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x45f57b
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x45f56e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x45f56e
push eax
call fcn.00423fbb
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x45f566
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp + 0xc], ebx
jmp 0x45f57b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp + 0xc]
call fcn.00423f4a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f59e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f5c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 8]
add ecx, ecx
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45f601
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret