Function at 0x4100c0
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 0x49b5e2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x150
mov eax, dword [0x4da0c0]
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 - 0xd8], edi
call fcn.0040f5c0
test al, al
jne 0x41012e
push edi
mov ecx, esi
call fcn.0040f6c0
mov edx, dword [esi + 0x1c]
lea eax, [edi + 0x10]
lea ecx, [esi + 0xc]
mov dword [ebp - 0xf8], eax
mov esi, dword [eax]
mov eax, accept
sub eax, edx
cmp eax, esi
jb 0x410ff9
cmp dword [ecx + 0x14], 0xf
jbe 0x410156
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x410160
mov eax, dword [edi]
push esi
push eax
push edx
push ecx
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x44]
call fcn.00409170
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 0x4101ab
cmp esi, 0xf
lea eax, [edx + 1]
mov dword [ebp - 0x34], eax
cmova ecx, dword [ebp - 0x44]
mov al, byte [0x4cf258]
mov byte [edx + ecx], al
lea eax, [ebp - 0x44]
mov byte [edx + ecx + 1], 0
jmp 0x4101bf
push 1
push 0x4cf258
push dword [ebp - 0xec]
push 1
call fcn.004085f0
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, 0xf
jbe 0x41023d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410233
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ffe
push ecx
push edx
call fcn.004734a9
add esp, 8
push edi
xor eax, eax
mov dword [ebp - 0x34], 0
push 8
push 0x4cf514
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x140]
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xfc], eax
call fcn.00412b10
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x410282
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 - 0xe4], esi
cmp ecx, 0xf
jbe 0x4102da
mov edx, dword [ebp - 0x140]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4102d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411003
push ecx
push edx
call fcn.004734a9
add esp, 8
push edi
push 8
push 0x4cf520
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.00412b10
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x410319
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 - 0xe8], eax
cmp ecx, 0xf
jbe 0x410375
mov edx, dword [ebp - 0x158]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410365
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411008
push ecx
push edx
call fcn.004734a9
mov eax, dword [ebp - 0xe8]
add esp, 8
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0xf
mov byte [ebp - 0x158], 0
cmp esi, 0xffffffff
je 0x410fc8
cmp eax, 0xffffffff
je 0x410fc8
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
push 0x2c
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
call fcn.00473474
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 - 0x2c], eax
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x410670
cmp dword [ebp - 0x20], 0
jne 0x41042f
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41042f
lea ecx, [ebp - 0x2c]
call fcn.00411050
lea ecx, [ebp - 0xa0]
call fcn.00402b00
jmp 0x410fa8
mov eax, dword [ebp - 0x24]
xor edi, edi
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x48], edi
test eax, eax
je 0x41066a
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 0x41066a
mov esi, dword [ebp - 0xd0]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
cmp esi, 0x7fffffff
ja 0x410ff9
mov dword [ebp - 0x30], 0xf
cmp esi, 0xf
ja 0x4104c4
push esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], esi
push 0
push eax
call fcn.00474ea0
mov byte [ebp + esi - 0x44], 0
jmp 0x41055e
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4104e5
mov eax, connect
mov dword [ebp - 0xdc], connect
add eax, 0x23
jmp 0x41050a
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
mov dword [ebp - 0xdc], edi
inc edi
cmp edi, 0x1000
jb 0x410526
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x41100d
push eax
call fcn.00473474
add esp, 4
test eax, eax
je 0x410ffe
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x410539
test edi, edi
je 0x410537
push edi
call fcn.00473474
add esp, 4
mov edi, eax
jmp 0x410539
xor edi, edi
mov eax, dword [ebp - 0xdc]
push esi
push 0
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], eax
call fcn.00474ea0
mov byte [edi + esi], 0
mov esi, dword [ebp - 0xd0]
mov edi, dword [ebp - 0x48]
add esp, 0xc
push 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
push ecx
cmova eax, dword [ebp - 0x44]
push esi
mov esi, dword [ebp - 0xe4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41065e
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xe0], eax
lea edx, [ebp - 0x44]
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x118]
call fcn.00412be0
add esp, 4
push eax
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x2c]
call fcn.004142a0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x104]
cmp ecx, 0xf
jbe 0x41060a
mov edx, dword [ebp - 0x118]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410600
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ffe
push ecx
push edx
call fcn.004734a9
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 - 0x30]
cmp ecx, 0xf
jbe 0x41064f
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410645
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ffe
push ecx
push edx
call fcn.004734a9
add esp, 8
inc edi
mov dword [ebp - 0x48], edi
cmp edi, dword [ebp - 0x24]
jb 0x410450
jmp 0x41066a
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00402b00
mov edi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xf8]
mov ecx, accept
mov eax, dword [eax]
sub ecx, eax
cmp ecx, 1
jb 0x411012
cmp dword [edi + 0x14], 0xf
jbe 0x410690
mov edi, dword [edi]
push 1
push 0x4cf258
push eax
push edi
push ecx
push dword [ebp - 0xec]
lea ecx, [ebp - 0x114]
call fcn.00409170
mov byte [ebp - 4], 6
lea edx, [ebp - 0x114]
mov byte [ebp - 0xe0], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0xe0]
call fcn.004143f0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.00412880
add esp, 4
test eax, eax
jne 0x411017
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x4c]
cmp ecx, 7
jbe 0x410730
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410726
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411027
push ecx
push edx
call fcn.004734a9
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 - 0x100]
cmp ecx, 0xf
jbe 0x410782
mov edx, dword [ebp - 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410778
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411027
push ecx
push edx
call fcn.004734a9
add esp, 8
mov ecx, dword [ebp - 0x7c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x88], xmm0
test ecx, ecx
je 0x410798
lock inc dword [ecx + 4]
mov edi, dword [ebp - 0x80]
mov esi, ecx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], esi
test ecx, ecx
je 0x4107b7
lock inc dword [ecx + 4]
xor eax, eax
movlpd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xb4], eax
test ecx, ecx
je 0x410801
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x4107ff
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 0x4107ff
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov byte [ebp - 4], 0xd
cmp edi, eax
je 0x410eb6
mov ecx, edi
call fcn.0040e0c0
test al, al
jne 0x410e8e
lea eax, [edi + 0x20]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], eax
push ecx
mov ecx, eax
call fcn.0040d510
push ecx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call fcn.00412660
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x100]
cmp ecx, 7
jbe 0x41088b
mov edx, dword [ebp - 0x114]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410881
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41102c
push ecx
push edx
call fcn.004734a9
add esp, 8
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x60]
mov esi, dword [ebp - 0x60]
lea ecx, [ebp - 0x128]
cmp edi, 0xf
push str..hdr
cmova eax, esi
seta byte [ebp - 0xd1]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x124], eax
call fcn.004115c0
test al, al
jne 0x410e0d
cmp byte [ebp - 0xd1], 0
lea eax, [ebp - 0x60]
push str..src
cmovne eax, esi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x11c], eax
call fcn.004115c0
test al, al
jne 0x410e0d
cmp byte [ebp - 0xd1], al
je 0x41092f
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x410925
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411045
push ecx
push esi
call fcn.004734a9
add esp, 8
push ecx
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 4], 0xd
call fcn.00412660
push ecx
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 0x11
call fcn.00412660
mov eax, dword [ebp - 0xf8]
xorps xmm0, xmm0
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x34]
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 0x411031
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, 0xf
lea ecx, [ebp - 0x44]
cmova ecx, edi
cmp esi, 0xf
jbe 0x4109f9
test eax, eax
je 0x4109c2
add eax, ecx
push esi
push eax
push ecx
call fcn.00475270
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov edi, dword [ebp - 0x44]
cmp edx, 0xf
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x44]
cmova eax, edi
mov byte [eax + esi], 0
mov eax, 0xf
movups xmm0, xmmword [ebp - 0x44]
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], eax
jmp 0x410a08
add eax, ecx
lea ecx, [ebp - 0x78]
push esi
push eax
call fcn.00408750
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x100]
cmp ecx, 0xf
jbe 0x410a49
mov edx, dword [ebp - 0x114]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410a3c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411036
push ecx
push edx
call fcn.004734a9
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, 0xf
jbe 0x410a9b
mov edx, dword [ebp - 0x44]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x410a91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411036
push ecx
push edx
call fcn.004734a9
add esp, 8
push ecx
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00412660
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 0x410b1a
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410b10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41103b
push ecx
push edx
call fcn.004734a9
add esp, 8
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp esi, 0xffffffff
jne 0x410b72
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x410e8e
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410b63
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411040
push ecx
push edx
call fcn.004734a9
add esp, 8
jmp 0x410e8e
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00414430
mov esi, dword [ebp - 0x15c]
cmp byte [esi + 0xd], 0
jne 0x410bc9
cmp dword [esi + 0x24], 0xf
lea eax, [esi + 0x10]
mov edx, dword [eax + 0x10]
jbe 0x410b9f
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.00408260
add esp, 8
test eax, eax
je 0x410bc4
shr eax, 0x1f
test al, al
jne 0x410bcc
mov eax, dword [ebp - 0x2c]
jmp 0x410bd1
mov edi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x2c]
mov esi, eax
push 2
push 0
push 0
push dword [ebp - 0xe8]
cmp esi, eax
je 0x410c6e
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xb0], eax
call fcn.0040e110
mov edi, dword [ebp - 0xe4]
push 0
push 0
push dword [esi + 0x28]
mov dword [ebp - 0xa4], 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 0x410c43
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xa4]
push eax
push edi
call esi
test eax, eax
jne 0x410d41
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x48], edi
call esi
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xa8], eax
call fcn.0040e110
mov edi, dword [ebp - 0xe4]
push 2
push 0
push 0
push edi
mov dword [ebp - 0xac], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x20]
push 0
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push edi
call esi
lea ecx, [ebp - 0x78]
test eax, eax
jne 0x410cc9
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
call fcn.00402af0
push 0
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x48]
push eax
push edi
call esi
test eax, eax
jne 0x410cf0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xa8]
push eax
push edi
call esi
test eax, eax
jne 0x410d17
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
push 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0xac]
push eax
push edi
call esi
test eax, eax
jne 0x410d3e
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
inc dword [ebp - 0x24]
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.004734b7
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 0x410d97
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
push 0
lea eax, [ebp - 0x20]
push eax
push esi
push edi
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410dc0
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
push edi
call fcn.0047346f
add esp, 4
push dword [ebp - 0xd0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x60]
push eax
call fcn.0040d4f0
mov ecx, eax
call fcn.00402af0
push eax
call fcn.0047c22c
add esp, 4
lea ecx, [ebp - 0x60]
call fcn.00402b00
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00402b00
jmp 0x410e8e
cmp byte [ebp - 0xd1], 0
je 0x410e41
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x410e37
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411045
push ecx
push esi
call fcn.004734a9
add esp, 8
mov dword [ebp - 4], 0xd
jmp 0x410e8e
lea ecx, [ebp - 0x88]
call fcn.0040eb50
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp - 0x84]
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xdc], edi
jmp 0x410805
or edi, 0xffffffff
test esi, esi
je 0x410edc
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x410edc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x410edc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x7c]
test esi, esi
je 0x410f01
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x410f01
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x410f01
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0xfc]
mov esi, dword [ebp - 0xe4]
cmp dword [ebp - 0x24], eax
je 0x410f43
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 - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410f54
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xe8]
call esi
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
lea eax, [ebp - 0x2c]
push eax
mov ecx, eax
call fcn.004144c0
push 0x2c
push dword [ebp - 0x2c]
call fcn.004734a9
mov ecx, dword [ebp - 0x8c]
add esp, 8
cmp ecx, 0xf
jbe 0x410fa8
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410f9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410ff4
push ecx
push edx
call fcn.004734a9
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.00473461
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
mov ecx, dword [ebp - 0x8c]
cmp ecx, 0xf
jbe 0x410fa8
mov edx, dword [ebp - 0xa0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410f9e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410f9e
call fcn.0047b2e0
call fcn.00401a90
call fcn.0047b2e0
call fcn.0047b2e0
call fcn.0047b2e0
call fcn.004019f0
call fcn.00401a90
lea ecx, [ebp - 0x60]
mov edx, eax
push ecx
mov ecx, str.recursive_directory_iterator::recursive_directory_iterator
call fcn.0040e030
call fcn.0047b2e0
call fcn.0047b2e0
call fcn.00407bf0
call fcn.0047b2e0
call fcn.0047b2e0
call fcn.0047b2e0
call fcn.0047b2e0
int3