Function at 0x4d7620
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 0x4d766f
mov ebp, dword [ebx + 0x254]
cmp di, 0x2e
jne 0x4d778a
test dx, dx
je 0x4d766f
cmp dx, 0x2e
jne 0x4d778a
test cx, cx
jne 0x4d778a
lea edi, [esp + 0x58]
push 0x250
push 0
push edi
call fcn.00528820
add esp, 0xc
mov ebp, dword [ebx + 0x258]
push edi
push ebp
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x4d7770
mov eax, dword [ebx + 0x254]
mov ebx, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [esp + 0xc], eax
jmp 0x4d76bc
push edi
push ebp
call ebx
test eax, eax
je 0x4d7770
cmp word [esp + 0x84], 0x2e
jne 0x4d76e5
movzx eax, word [esp + 0x86]
test ax, ax
je 0x4d76b0
cmp ax, 0x2e
jne 0x4d76e5
cmp word [esp + 0x88], 0
je 0x4d76b0
mov ebp, dword [esp + 0xc]
lock inc dword [ebp]
jle 0x4d78f1
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 0x4d77eb
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x4d7803
mov dword [esi], 0
jmp 0x4d78e6
mov word [esp + 2], di
mov word [esp + 4], dx
mov word [esp + 6], cx
lock inc dword [ebp]
jle 0x4d78f1
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.005282a0
add esp, 0xc
jmp 0x4d7811
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 0x4d786f
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.005282a0
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.005282a0
add esp, 0xc
mov dword [esi], 1
add esp, 0x4c8
pop esi
pop edi
pop ebx
pop ebp
ret
ud2