Function at 0x4508a0
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 0x4e0575
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x148
mov eax, dword [0x535100]
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 - 0xe4], esi
mov dword [ebp - 0xd4], edi
call fcn.0044fd90
test al, al
jne 0x45090e
push edi
mov ecx, esi
call fcn.0044fea0
mov edx, dword [esi + 0x1c]
lea eax, [edi + 0x10]
lea ecx, [esi + 0xc]
mov dword [ebp - 0xe8], eax
mov esi, dword [eax]
mov eax, closesocket
sub eax, edx
cmp eax, esi
jb 0x4517a5
cmp dword [ecx + 0x14], 0xf
jbe 0x450936
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x450940
mov eax, dword [edi]
push esi
push eax
push edx
push ecx
push ecx
push dword [ebp - 0xe4]
lea ecx, [ebp - 0x48]
call fcn.00449620
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov esi, dword [ebp - 0x34]
mov eax, esi
mov edx, dword [ebp - 0x38]
sub eax, edx
cmp eax, 1
jb 0x45098b
cmp esi, 0xf
lea eax, [edx + 1]
mov dword [ebp - 0x38], eax
cmova ecx, dword [ebp - 0x48]
mov al, byte [0x529ca8]
mov byte [edx + ecx], al
lea eax, [ebp - 0x48]
mov byte [edx + ecx + 1], 0
jmp 0x45099f
push 1
push 0x529ca8
push dword [ebp - 0xe4]
push 1
call fcn.00448980
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x9c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x450a1d
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450a13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517aa
push ecx
push edx
call fcn.004b4ed8
add esp, 8
push edi
xor eax, eax
mov dword [ebp - 0x38], 0
push 8
push 0x529f64
lea edx, [ebp - 0xac]
mov dword [ebp - 0x34], 0xf
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xec], eax
call fcn.00453100
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x450a62
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 - 0x120]
mov esi, eax
mov dword [ebp - 0xdc], esi
cmp ecx, 0xf
jbe 0x450aba
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450ab0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517af
push ecx
push edx
call fcn.004b4ed8
add esp, 8
push edi
push 8
push 0x529f70
lea edx, [ebp - 0xac]
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
call fcn.00453100
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x450af9
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 - 0x138]
mov dword [ebp - 0xe0], eax
cmp ecx, 0xf
jbe 0x450b55
mov edx, dword [ebp - 0x14c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450b45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517b4
push ecx
push edx
call fcn.004b4ed8
mov eax, dword [ebp - 0xe0]
add esp, 8
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
cmp esi, 0xffffffff
je 0x451774
cmp eax, 0xffffffff
je 0x451774
xorps xmm0, xmm0
movlpd qword [ebp - 0x30], xmm0
push 0x2c
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004b4ea3
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 - 0x30], eax
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x450e46
cmp dword [ebp - 0x20], 0
jne 0x450c0f
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450c0f
lea ecx, [ebp - 0x30]
call fcn.00451800
lea ecx, [ebp - 0xac]
call fcn.00442f60
jmp 0x451754
mov eax, dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x24], edi
test eax, eax
je 0x450e40
nop word [eax + 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 0x450e40
mov esi, dword [ebp - 0xd0]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
cmp esi, 0x7fffffff
ja 0x4517a5
cmp esi, 0xf
ja 0x450ca4
push esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], esi
push 0
push eax
mov dword [ebp - 0x34], 0xf
call fcn.004b6a30
mov byte [ebp + esi - 0x48], 0
jmp 0x450d3a
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x450cc5
mov eax, closesocket
mov dword [ebp - 0xd8], closesocket
add eax, 0x23
jmp 0x450cee
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
mov dword [ebp - 0xd8], edi
add edi, 1
je 0x450d15
cmp edi, 0x1000
jb 0x450d0a
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4517b9
push eax
call fcn.004b4ea3
add esp, 4
test eax, eax
je 0x4517aa
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x450d15
push edi
call fcn.004b4ea3
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0xd8]
push esi
push 0
push edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
call fcn.004b6a30
mov byte [edi + esi], 0
mov esi, dword [ebp - 0xd0]
mov edi, dword [ebp - 0x24]
add esp, 0xc
push 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
push ecx
cmova eax, dword [ebp - 0x48]
push esi
mov esi, dword [ebp - 0xdc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450e34
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10c]
call fcn.004531d0
add esp, 4
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x30]
call fcn.00454890
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xf8]
cmp ecx, 0xf
jbe 0x450de0
mov edx, dword [ebp - 0x10c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450dd6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517aa
push ecx
push edx
call fcn.004b4ed8
add esp, 8
push 1
push 0
push 8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x450e25
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450e1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517aa
push ecx
push edx
call fcn.004b4ed8
add esp, 8
inc edi
mov dword [ebp - 0x24], edi
cmp edi, dword [ebp - 0x28]
jb 0x450c30
jmp 0x450e40
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00442f60
mov edi, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xe8]
mov ecx, closesocket
mov eax, dword [eax]
sub ecx, eax
cmp ecx, 1
jb 0x4517be
cmp dword [edi + 0x14], 0xf
jbe 0x450e66
mov edi, dword [edi]
push 1
push 0x529ca8
push eax
push edi
push ecx
push dword [ebp - 0xe4]
lea ecx, [ebp - 0x108]
call fcn.00449620
mov byte [ebp - 4], 6
lea edx, [ebp - 0x108]
mov byte [ebp - 0x24], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x24]
call fcn.004549e0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x88]
call fcn.00452e80
add esp, 4
test eax, eax
jne 0x4517c3
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x4c]
cmp ecx, 7
jbe 0x450f09
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x450eff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517d3
push ecx
push edx
call fcn.004b4ed8
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xf4]
cmp ecx, 0xf
jbe 0x450f5b
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x450f51
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517d3
push ecx
push edx
call fcn.004b4ed8
add esp, 8
mov ecx, dword [ebp - 0x84]
xorps xmm0, xmm0
movlpd qword [ebp - 0x94], xmm0
test ecx, ecx
je 0x450f74
lock inc dword [ecx + 4]
mov edi, dword [ebp - 0x88]
mov esi, ecx
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], esi
test ecx, ecx
je 0x450f96
lock inc dword [ecx + 4]
xor eax, eax
movlpd qword [ebp - 0x80], xmm0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
test ecx, ecx
je 0x450fcf
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x450fcc
mov eax, dword [ecx]
call dword [eax]
or ecx, 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0x84]
lock xadd dword [ecx + 8], eax
jne 0x450fcc
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 0xd
cmp edi, eax
je 0x45165f
mov ecx, edi
call fcn.0044e830
test al, al
jne 0x45163a
lea eax, [edi + 0x20]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x108]
mov dword [ebp - 0xd4], eax
push ecx
mov ecx, eax
call fcn.0044dbf0
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call fcn.00452c60
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xf4]
cmp ecx, 7
jbe 0x451059
mov edx, dword [ebp - 0x108]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x45104f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517d8
push ecx
push edx
call fcn.004b4ed8
add esp, 8
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x60]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x11c]
cmp edi, 0xf
push str..hdr
cmova eax, esi
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x118], eax
call fcn.00451d70
test al, al
jne 0x4515d2
cmp edi, 0xf
lea eax, [ebp - 0x60]
push str..src
cmova eax, esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x110], eax
call fcn.00451d70
test al, al
jne 0x4515d2
cmp edi, 0xf
jbe 0x4510ed
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x4510e3
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517f1
push edi
push esi
call fcn.004b4ed8
add esp, 8
push ecx
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0xd
call fcn.00452c60
push ecx
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0x11
call fcn.00452c60
mov eax, dword [ebp - 0xe8]
xorps xmm0, xmm0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x38]
movups xmmword [ebp - 0x78], xmm0
mov eax, dword [eax]
inc eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
cmp ecx, eax
jb 0x4517dd
mov esi, dword [ebp - 0xf8]
sub ecx, eax
mov edx, dword [ebp - 0x34]
cmp ecx, esi
mov edi, dword [ebp - 0x48]
cmovb esi, ecx
cmp edx, 0xf
lea ecx, [ebp - 0x48]
cmova ecx, edi
cmp esi, 0xf
jbe 0x4511b7
test eax, eax
je 0x451180
add eax, ecx
push esi
push eax
push ecx
call fcn.004b6e00
mov edx, dword [ebp - 0x34]
add esp, 0xc
mov edi, dword [ebp - 0x48]
cmp edx, 0xf
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x48]
cmova eax, edi
mov byte [eax + esi], 0
mov eax, 0xf
movups xmm0, xmmword [ebp - 0x48]
mov byte [ebp - 0x48], 0
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [ebp - 0x38]
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
jmp 0x4511c6
add eax, ecx
lea ecx, [ebp - 0x78]
push esi
push eax
call fcn.00448ae0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0xf4]
cmp ecx, 0xf
jbe 0x451207
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4511fa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517e2
push ecx
push edx
call fcn.004b4ed8
mov eax, dword [ebp - 0x34]
add esp, 8
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
mov byte [ebp - 4], 0x15
cmp eax, 0xf
jbe 0x451259
mov edx, dword [ebp - 0x48]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x45124f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517e2
push ecx
push edx
call fcn.004b4ed8
add esp, 8
push ecx
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00452c60
cmp dword [ebp - 0x4c], 0xf
lea eax, [ebp - 0x60]
push 0
cmova eax, dword [ebp - 0x60]
push 0x80
push 3
push 0
push 1
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 0xd0], esi
cmp ecx, 0xf
jbe 0x4512d8
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4512ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517e7
push ecx
push edx
call fcn.004b4ed8
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp esi, 0xffffffff
jne 0x451330
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x45163a
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451321
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517ec
push ecx
push edx
call fcn.004b4ed8
add esp, 8
jmp 0x45163a
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x30]
call fcn.00454a20
mov esi, dword [ebp - 0x150]
cmp byte [esi + 0xd], 0
jne 0x451391
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jbe 0x45135d
mov eax, dword [eax]
cmp dword [ebp - 0x64], 0xf
lea ecx, [ebp - 0x78]
mov edi, dword [ebp - 0x68]
cmova ecx, dword [ebp - 0x78]
push edx
push eax
mov edx, edi
call fcn.004485f0
add esp, 8
test eax, eax
je 0x45138c
mov ecx, 0xff
mov eax, 1
cmovns ecx, eax
test cl, cl
js 0x451394
mov eax, dword [ebp - 0x30]
jmp 0x451399
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x30]
mov esi, eax
push 2
push 0
push 0
push dword [ebp - 0xe0]
cmp esi, eax
je 0x451436
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xb0], eax
call fcn.0044e910
mov edi, dword [ebp - 0xdc]
push 0
push 0
push dword [esi + 0x28]
mov dword [ebp - 0xb4], eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push 0
push eax
push 4
lea eax, [ebp - 0xb0]
push eax
push edi
call esi
test eax, eax
jne 0x45140b
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xb4]
push eax
push edi
call esi
test eax, eax
jne 0x451509
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], edi
call esi
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xb8], eax
call fcn.0044e910
mov edi, dword [ebp - 0xdc]
push 2
push 0
push 0
push edi
mov dword [ebp - 0x8c], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push 0
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push edi
call esi
lea ecx, [ebp - 0x78]
test eax, eax
jne 0x451491
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
call fcn.00442f50
push 0
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x24]
push eax
push edi
call esi
test eax, eax
jne 0x4514b8
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xb8]
push eax
push edi
call esi
test eax, eax
jne 0x4514df
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x8c]
push eax
push edi
call esi
test eax, eax
jne 0x451506
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
inc dword [ebp - 0x28]
mov edi, dword [ebp - 0xd0]
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.004b4ee6
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20]
push 0
push eax
push esi
push edi
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45155f
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x451588
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
push edi
call fcn.004b4e9e
add esp, 4
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0x60]
push eax
call fcn.0044dbd0
mov ecx, eax
call fcn.00442f50
push eax
call fcn.004be11c
add esp, 4
lea ecx, [ebp - 0x60]
call fcn.00442f60
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00442f60
jmp 0x45163a
cmp edi, 0xf
jbe 0x451633
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x4515f6
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517f1
push edi
push esi
call fcn.004b4ed8
add esp, 8
jmp 0x451633
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x94]
call fcn.0044f280
mov edi, dword [ebp - 0x94]
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xd8], edi
jmp 0x450fd3
or edi, 0xffffffff
test esi, esi
je 0x451685
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x451685
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x451685
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x4516ad
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4516ad
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4516ad
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0xec]
mov esi, dword [ebp - 0xdc]
cmp dword [ebp - 0x28], eax
je 0x4516ef
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 - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x451700
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xe0]
call esi
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
mov ecx, eax
call fcn.00454ac0
push 0x2c
push dword [ebp - 0x30]
call fcn.004b4ed8
mov ecx, dword [ebp - 0x98]
add esp, 8
cmp ecx, 0xf
jbe 0x451754
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45174a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4517a0
push ecx
push edx
call fcn.004b4ed8
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.004b4e90
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
mov ecx, dword [ebp - 0x98]
cmp ecx, 0xf
jbe 0x451754
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45174a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45174a
call fcn.004bd1a0
call fcn.00441ef0
call fcn.004bd1a0
call fcn.004bd1a0
call fcn.004bd1a0
call fcn.00441e50
call fcn.00441ef0
lea ecx, [ebp - 0x60]
mov edx, eax
push ecx
mov ecx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.0044e710
call fcn.004bd1a0
call fcn.004bd1a0
call fcn.00448040
call fcn.004bd1a0
call fcn.004bd1a0
call fcn.004bd1a0
call fcn.004bd1a0
int3