Function at 0x507200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c8
mov eax, dword [edx]
mov ebx, edx
mov esi, ecx
movzx edi, word [edx + 0x30]
movzx edx, word [edx + 0x32]
movzx ecx, word [ebx + 0x34]
mov dword [ebx], 0
cmp eax, 1
jne 0x50724f
mov ebp, dword [ebx + 0x254]
cmp di, 0x2e
jne 0x507369
test dx, dx
je 0x50724f
cmp dx, 0x2e
jne 0x507369
test cx, cx
jne 0x507369
lea edi, [esp + 0x58]
push 0x250
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebp, dword [ebx + 0x258]
push edi
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x507350
mov eax, dword [ebx + 0x254]
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [esp + 0xc], eax
jmp 0x50729c
push edi
push ebp
call ebx
test eax, eax
je 0x507350
cmp word [esp + 0x84], 0x2e
jne 0x5072c5
movzx eax, word [esp + 0x86]
test ax, ax
je 0x507290
cmp ax, 0x2e
jne 0x5072c5
cmp word [esp + 0x88], 0
je 0x507290
mov ebp, dword [esp + 0xc]
lock inc dword [ebp]
jle 0x5074cf
mov ebx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
movsd xmm0, qword [esp + 0x60]
mov edi, ebx
mov dword [esp + 8], eax
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x68]
shrd edi, eax, 8
mov eax, dword [esp + 0x80]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x70]
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x84]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [esp + 0x78]
mov word [esp + 2], ax
movzx eax, word [esp + 0x86]
movsd qword [esp + 0x28], xmm0
mov word [esp + 4], ax
movzx eax, word [esp + 0x88]
mov word [esp + 6], ax
lea eax, [esp + 0x8a]
jmp 0x5073ca
call sub.kernel32.dll_GetLastError
cmp eax, 0x12
jne 0x5073e2
mov dword [esi], 0
jmp 0x5074c4
mov word [esp + 2], di
mov word [esp + 4], dx
mov word [esp + 6], cx
lock inc dword [ebp]
jle 0x5074cf
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
movsd xmm1, qword [ebx + 0x1c]
movsd xmm0, qword [ebx + 0x24]
movsd xmm2, qword [ebx + 0x14]
lea eax, [ebx + 0x36]
mov edi, edx
movsd qword [esp + 0x20], xmm1
movsd xmm1, qword [ebx + 0xc]
mov dword [esp + 8], ecx
movsd qword [esp + 0x28], xmm0
movsd qword [esp + 0x18], xmm2
shrd edi, ecx, 8
mov ecx, dword [ebx + 0x2c]
mov ebx, edx
movsd qword [esp + 0x10], xmm1
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x2aa]
push 0x21e
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x5073ef
xor ebx, ebx
call sub.kernel32.dll_GetLastError
xor ebp, ebp
mov dword [esp + 8], eax
shl edi, 8
movzx ebx, bl
or ebx, edi
test ebp, ebp
je 0x50744d
movsd xmm1, qword [esp + 0x20]
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x10]
lea ecx, [esp + 0x58]
movsd qword [esp + 0x44], xmm1
movsd xmm1, qword [esp + 0x18]
mov dword [esp + 0x54], eax
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x34], xmm2
lea eax, [esp + 0x2aa]
movsd qword [esp + 0x3c], xmm1
push 0x21e
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 8]
movsd xmm0, qword [esp + 0x34]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebx
movsd xmm1, qword [esp + 0x3c]
lea ecx, [esp + 0x58]
mov dword [esi + 0xc], eax
movsd qword [esi + 0x10], xmm0
movsd xmm0, qword [esp + 0x44]
mov eax, dword [esp + 0x54]
movsd qword [esi + 0x18], xmm1
movsd qword [esi + 0x20], xmm0
movsd xmm0, qword [esp + 0x4c]
mov dword [esi + 0x30], eax
movzx eax, word [esp + 2]
movsd qword [esi + 0x28], xmm0
mov word [esi + 0x34], ax
movzx eax, word [esp + 4]
mov word [esi + 0x36], ax
movzx eax, word [esp + 6]
mov word [esi + 0x38], ax
lea eax, [esi + 0x3a]
push 0x21e
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esi], 1
add esp, 0x4c8
pop esi
pop edi
pop ebx
pop ebp
ret
ud2