Function at 0x450770
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb242
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x150
mov eax, dword [0x542094]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0xf0], esi
mov edi, dword [ebx + 8]
push edi
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xdc], edi
call fcn.0044fba0
test al, al
jne 0x4507de
push edi
mov ecx, esi
call fcn.0044fd70
mov edx, dword [esi + 0x1c]
lea eax, [edi + 0x10]
lea ecx, [esi + 0xc]
mov dword [ebp - 0xf8], eax
mov esi, dword [eax]
mov eax, closesocket
sub eax, edx
cmp eax, esi
jb 0x45179c
cmp dword [ecx + 0x14], 0x10
jb 0x450806
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x450810
mov eax, dword [edi]
push esi
push eax
push edx
push ecx
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x44]
call fcn.00449010
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov esi, dword [ebp - 0x30]
mov eax, esi
mov edx, dword [ebp - 0x34]
sub eax, edx
cmp eax, 1
jb 0x45085b
cmp esi, 0x10
lea eax, [edx + 1]
mov dword [ebp - 0x34], eax
cmovae ecx, dword [ebp - 0x44]
mov al, byte [0x536c80]
mov byte [ecx + edx], al
lea eax, [ebp - 0x44]
mov byte [ecx + edx + 1], 0
jmp 0x45086f
push 1
push 0x536c80
push dword [ebp - 0xec]
push 1
call fcn.00448510
mov dword [ebp - 0x90], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa0], xmm0
mov dword [ebp - 0x8c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x4508ed
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4508e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517a1
push ecx
push edx
call fcn.004bf874
add esp, 8
push edi
xor eax, eax
mov dword [ebp - 0x34], 0
push 8
push 0x536f70
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x140]
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xfc], eax
call fcn.004531e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x450932
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x12c]
mov esi, eax
mov dword [ebp - 0xd8], esi
cmp ecx, 0x10
jb 0x45098a
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450980
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517a6
push ecx
push edx
call fcn.004bf874
add esp, 8
push edi
push 8
push 0x536f7c
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x130], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.004531e0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4509c9
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0xe4], eax
cmp ecx, 0x10
jb 0x450a25
mov edx, dword [ebp - 0x158]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450a15
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517ab
push ecx
push edx
call fcn.004bf874
mov eax, dword [ebp - 0xe4]
add esp, 8
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp esi, 0xffffffff
je 0x45176b
cmp eax, 0xffffffff
je 0x45176b
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
push 0x2c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.004bf83f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x450d60
cmp dword [ebp - 0x20], 0
jne 0x450af5
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450af5
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, eax
call fcn.00454b50
push 0x2c
push dword [ebp - 0x28]
call fcn.004bf874
add esp, 8
lea ecx, [ebp - 0xa0]
call fcn.00442c20
jmp 0x45174b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x48], 0
test eax, eax
je 0x450d60
nop dword [eax]
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0xd0], 0
push eax
push 4
lea eax, [ebp - 0xd0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450d5a
mov edi, dword [ebp - 0xd0]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
cmp edi, 0x7fffffff
ja 0x45179c
mov dword [ebp - 0x30], 0xf
cmp edi, 0x10
jae 0x450b84
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], edi
push 0
push eax
call fcn.004c1310
mov byte [ebp + edi - 0x44], 0
jmp 0x450c1d
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x450ba0
mov ecx, closesocket
mov esi, closesocket
add ecx, 0x23
jmp 0x450bc0
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x450bde
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4517b0
push ecx
call fcn.004bf83f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4517b5
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x450bef
test eax, eax
je 0x450bed
push eax
call fcn.004bf83f
add esp, 4
jmp 0x450bef
xor eax, eax
push edi
push 0
push eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
call fcn.004c1310
mov eax, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xd8]
mov byte [eax + edi], 0
mov edi, dword [ebp - 0xd0]
add esp, 0xc
push 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push ecx
cmovae eax, dword [ebp - 0x44]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450d22
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
mov esi, eax
lea ecx, [ebp - 0x118]
lea eax, [ebp - 0x44]
push eax
call fcn.00446870
mov dword [ebp - 0x100], esi
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x28]
call fcn.00454930
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x104]
cmp ecx, 0x10
jb 0x450cc4
mov edx, dword [ebp - 0x118]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450cba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517b5
push ecx
push edx
call fcn.004bf874
add esp, 8
mov esi, dword [ebp - 0xd8]
push 1
push 0
push 8
push esi
call edi
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x450d0b
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450d01
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517b5
push ecx
push edx
call fcn.004bf874
add esp, 8
mov esi, dword [ebp - 0x48]
inc esi
mov dword [ebp - 0x48], esi
cmp esi, dword [ebp - 0x2c]
jae 0x450d5a
mov esi, dword [ebp - 0xd8]
jmp 0x450b10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x450d5a
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450d50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517b5
push ecx
push edx
call fcn.004bf874
add esp, 8
mov edi, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xf8]
mov ecx, closesocket
mov eax, dword [eax]
sub ecx, eax
cmp ecx, 1
jb 0x4517ba
cmp dword [edi + 0x14], 0x10
jb 0x450d80
mov edi, dword [edi]
push 1
push 0x536c80
push eax
push edi
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x114]
call fcn.00449010
mov byte [ebp - 4], 6
lea edx, [ebp - 0x114]
mov byte [ebp - 0xe8], 0
lea ecx, [ebp - 0x78]
push dword [ebp - 0xe8]
call fcn.00454a80
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.00453040
add esp, 4
test eax, eax
jne 0x4517bf
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x64]
cmp ecx, 8
jb 0x450e20
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x450e16
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517cf
push ecx
push edx
call fcn.004bf874
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x100]
cmp ecx, 0x10
jb 0x450e72
mov edx, dword [ebp - 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450e68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517cf
push ecx
push edx
call fcn.004bf874
add esp, 8
mov ecx, dword [ebp - 0x7c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x88], xmm0
test ecx, ecx
je 0x450e88
lock inc dword [ecx + 4]
mov edi, dword [ebp - 0x80]
mov esi, ecx
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], esi
test ecx, ecx
je 0x450ea7
lock inc dword [ecx + 4]
xor eax, eax
movlpd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xb4], eax
test ecx, ecx
je 0x450ef1
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x450eef
mov eax, dword [ecx]
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0x7c]
lock xadd dword [ecx + 8], eax
jne 0x450eef
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov byte [ebp - 4], 0xd
cmp edi, eax
je 0x451659
mov ecx, edi
call fcn.0044e690
test al, al
jne 0x451631
lea eax, [edi + 0x20]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd0], eax
push ecx
mov ecx, eax
call fcn.0044dae0
push ecx
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call fcn.00452e20
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x100]
cmp ecx, 8
jb 0x450f7b
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x450f71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517d4
push ecx
push edx
call fcn.004bf874
add esp, 8
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x78]
mov esi, dword [ebp - 0x78]
lea ecx, [ebp - 0x128]
cmp edi, 0x10
push str..hdr
cmovae eax, esi
setae byte [ebp - 0xd1]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x124], eax
call fcn.00451d80
test al, al
jne 0x4515b0
cmp byte [ebp - 0xd1], 0
lea eax, [ebp - 0x78]
push str..src
cmovne eax, esi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x11c], eax
call fcn.00451d80
test al, al
jne 0x4515b0
cmp byte [ebp - 0xd1], al
je 0x45101f
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x451015
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517f7
push ecx
push esi
call fcn.004bf874
add esp, 8
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0xd0]
push eax
call fcn.00452e20
push ecx
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xd0]
push eax
call fcn.00452e20
mov eax, dword [ebp - 0xf8]
xorps xmm0, xmm0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x34]
movups xmmword [ebp - 0x60], xmm0
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
cmp ecx, eax
jb 0x4517d9
mov esi, dword [ebp - 0x104]
sub ecx, eax
mov edx, dword [ebp - 0x30]
cmp ecx, esi
mov edi, dword [ebp - 0x44]
cmovb esi, ecx
cmp edx, 0x10
lea ecx, [ebp - 0x44]
cmovae ecx, edi
cmp esi, 0x10
jb 0x4510e9
test eax, eax
je 0x4510b2
add eax, ecx
push esi
push eax
push ecx
call fcn.004c16e0
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov edi, dword [ebp - 0x44]
cmp edx, 0x10
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x44]
cmovae eax, edi
mov byte [eax + esi], 0
mov eax, 0xf
movups xmm0, xmmword [ebp - 0x44]
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], eax
jmp 0x4510f8
add eax, ecx
lea ecx, [ebp - 0x60]
push esi
push eax
call fcn.0044a810
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x100]
cmp ecx, 0x10
jb 0x451139
mov edx, dword [ebp - 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45112c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517de
push ecx
push edx
call fcn.004bf874
mov eax, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0xf
mov byte [ebp - 0x114], 0
mov byte [ebp - 4], 0x15
cmp eax, 0x10
jb 0x45118b
mov edx, dword [ebp - 0x44]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x451181
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517de
push ecx
push edx
call fcn.004bf874
add esp, 8
push ecx
mov ecx, dword [ebp - 0xd0]
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00452e20
cmp dword [ebp - 0x64], 0x10
lea eax, [ebp - 0x78]
push 0
cmovae eax, dword [ebp - 0x78]
push 0x80
push 3
push 0
push 1
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x64]
mov edi, eax
mov dword [ebp - 0xdc], edi
cmp ecx, 0x10
jb 0x45120a
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451200
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517e3
push ecx
push edx
call fcn.004bf874
add esp, 8
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edi, 0xffffffff
jne 0x45125c
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x451631
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45134a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517e8
jmp 0x45134a
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x28]
call fcn.00454ac0
mov esi, dword [ebp - 0x15c]
cmp byte [esi + 0xd], 0
jne 0x4512b1
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jb 0x451289
mov eax, dword [eax]
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
push edx
cmovae ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x50]
push eax
call fcn.00448290
add esp, 8
test eax, eax
je 0x4512ac
shr eax, 0x1f
test al, al
jne 0x4512b4
mov eax, dword [ebp - 0x28]
jmp 0x4512b9
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x28]
mov esi, eax
push 2
push 0
push 0
push dword [ebp - 0xe4]
cmp esi, eax
je 0x4513ab
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xb0], eax
call fcn.0044e6e0
push 0
push 0
push dword [esi + 0x28]
mov esi, dword [ebp - 0xd8]
push esi
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xb0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x451359
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x451631
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45134a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517ed
push ecx
push edx
call fcn.004bf874
add esp, 8
jmp 0x451631
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4514ea
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x451631
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45134a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517ed
jmp 0x45134a
mov dword [ebp - 0x48], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xa8], eax
call fcn.0044e6e0
mov esi, dword [ebp - 0xd8]
push 2
push 0
push 0
push esi
mov dword [ebp - 0xac], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x451436
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x451631
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451427
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517f2
push ecx
push edx
call fcn.004bf874
add esp, 8
jmp 0x451631
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x20]
push 0
push ecx
push dword [ebp - 0x48]
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x451491
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x451631
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45134a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517f2
jmp 0x45134a
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xa8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4514bc
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.00442c20
jmp 0x451631
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xac]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4514e7
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.00442c20
jmp 0x451631
inc dword [ebp - 0x2c]
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.004bf882
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20]
push 0
push eax
push esi
push edi
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45153a
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.00442c20
jmp 0x451631
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x451563
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.00442c20
jmp 0x451631
push edi
call fcn.004bf83a
add esp, 4
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd0]
lea eax, [ebp - 0x78]
push eax
call fcn.0044dac0
mov ecx, eax
call fcn.00442c10
push eax
call fcn.004c85a8
add esp, 4
lea ecx, [ebp - 0x78]
call fcn.00442c20
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.00442c20
jmp 0x451631
cmp byte [ebp - 0xd1], 0
je 0x4515e4
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4515da
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517f7
push ecx
push esi
call fcn.004bf874
add esp, 8
mov dword [ebp - 4], 0xd
jmp 0x451631
lea ecx, [ebp - 0x88]
call fcn.0044f120
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xe0], edi
jmp 0x450ef5
or edi, 0xffffffff
test esi, esi
je 0x45167f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x45167f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x45167f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x4516a4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4516a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4516a4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0xfc]
mov esi, dword [ebp - 0xd8]
cmp dword [ebp - 0x2c], eax
je 0x4516e6
mov eax, dword [ebp - 0xf0]
push 0
push 0
push 0
push esi
mov dword [eax + 8], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4516f7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xe4]
call esi
mov eax, dword [ebp - 0x28]
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, eax
call fcn.00454b50
push 0x2c
push dword [ebp - 0x28]
call fcn.004bf874
mov ecx, dword [ebp - 0x8c]
add esp, 8
cmp ecx, 0x10
jb 0x45174b
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451741
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x451797
push ecx
push edx
call fcn.004bf874
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004bf82c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0x10
jb 0x45174b
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451741
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x451741
call fcn.004c7a60
call fcn.00441cb0
call fcn.004c7a60
call fcn.004c7a60
call fcn.004c7a60
call fcn.00441c10
call fcn.004c7a60
call fcn.00441cb0
lea ecx, [ebp - 0x78]
mov edx, eax
push ecx
mov ecx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.0044e600
call fcn.004c7a60
call fcn.004c7a60
call fcn.00447db0
call fcn.004c7a60
call fcn.004c7a60
call fcn.004c7a60
call fcn.004c7a60
call fcn.004c7a60
call fcn.004c7a60
int3