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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c8
mov edi, dword [edx + 0x258]
mov esi, ecx
cmp edi, 0xffffffff
je 0x41fa7b
movzx ecx, word [edx + 0x30]
mov eax, dword [edx]
mov ebx, edx
movzx edx, word [edx + 0x32]
mov word [esp + 2], cx
movzx ecx, word [ebx + 0x34]
cmp eax, 1
mov dword [ebx], 0
jne 0x41f975
mov ebp, dword [ebx + 0x254]
cmp word [esp + 2], 0x2e
jne 0x41fa86
test dx, dx
je 0x41f975
cmp dx, 0x2e
jne 0x41fa86
test cx, cx
jne 0x41fa86
lea ebp, [esp + 0x58]
push 0x250
push 0
push ebp
call fcn.00435d50
add esp, 0xc
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41fa70
mov eax, dword [ebx + 0x254]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0xc], eax
jmp 0x41f9bc
push ebp
push edi
call ebx
test eax, eax
je 0x41fa70
cmp word [esp + 0x84], 0x2e
jne 0x41f9e5
movzx eax, word [esp + 0x86]
test ax, ax
je 0x41f9b0
cmp ax, 0x2e
jne 0x41f9e5
cmp word [esp + 0x88], 0
je 0x41f9b0
mov ebp, dword [esp + 0xc]
lock inc dword [ebp]
jle 0x41fbe8
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 0x41fae2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41fafa
mov dword [esi], 0
jmp 0x41fbdd
mov word [esp + 4], dx
mov word [esp + 6], cx
lock inc dword [ebp]
jle 0x41fbe8
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 fcn.00434160
add esp, 0xc
jmp 0x41fb08
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [esp + 8], eax
shl edi, 8
movzx ebx, bl
or ebx, edi
test ebp, ebp
je 0x41fb66
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 fcn.00434160
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 fcn.00434160
add esp, 0xc
mov dword [esi], 1
add esp, 0x4c8
pop esi
pop edi
pop ebx
pop ebp
ret
ud2