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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
lea ebx, [esp + 0x30]
push esi
push ebx
call fcn.004dcea0
add esp, 8
lea eax, [esp + 0x24]
push dword [ebp + 8]
push eax
call fcn.004dcea0
add esp, 8
lea edi, [esp + 0x6c]
push esi
push edi
call fcn.004dcf30
add esp, 8
lea ecx, [esp + 0x78]
push 0x4000
push edi
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0053c8d0
test byte [esp + 0x6c], 1
je 0x40d77e
push dword [esp + 0x74]
call fcn.004fc300
add esp, 4
test byte [esp + 0x24], 1
je 0x40d791
push dword [esp + 0x2c]
call fcn.004fc300
add esp, 4
test byte [esp + 0x30], 1
mov esi, dword [esp + 0x20]
je 0x40d7a8
push dword [esp + 0x38]
call fcn.004fc300
add esp, 4
mov ebx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x40d80a
lea eax, [esp + 0x78]
mov ecx, edi
push eax
call fcn.00556b50
lea eax, [esp + 0x84]
lea ecx, [edi + 0xc]
push eax
call fcn.00556b50
mov al, byte [esp + 0xa8]
mov byte [edi + 0x30], al
movsd xmm0, qword [esp + 0xa0]
movsd qword [edi + 0x28], xmm0
movsd xmm0, qword [esp + 0x90]
movsd xmm1, qword [esp + 0x98]
movsd qword [edi + 0x20], xmm1
movsd qword [edi + 0x18], xmm0
add dword [ebx + 4], 0x38
jmp 0x40d816
lea eax, [esp + 0x78]
mov ecx, ebx
push eax
call fcn.00575360
mov edi, dword [ebp + 8]
test byte [edi], 1
je 0x40d823
mov ebx, dword [edi + 8]
jmp 0x40d826
lea ebx, [edi + 1]
push 0x1c
call fcn.004fc150
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [eax], 0x584e0c
mov dword [esp + 0x40], eax
mov edx, ebx
mov dword [eax + 4], ecx
lea ecx, [esp + 4]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x14]
mov dword [eax + 0x10], ecx
lea ecx, [esp + 0x10]
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], ecx
lea eax, [esp + 0x30]
mov ecx, esi
mov edi, eax
push eax
call fcn.0040a4f0
add esp, 4
mov ecx, dword [esp + 0x40]
mov ebx, eax
cmp edi, ecx
je 0x40d88a
test ecx, ecx
je 0x40d881
mov eax, dword [ecx]
call dword [eax + 0x14]
test bl, bl
jne 0x40d897
jmp 0x40db37
mov eax, dword [ecx]
call dword [eax + 0x10]
test bl, bl
je 0x40db37
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp edi, eax
mov dword [esp], eax
je 0x40da5b
nop word [eax + eax]
test byte [edi + 0xc], 1
jne 0x40d8c0
lea edx, [edi + 0xd]
jmp 0x40d8c3
mov edx, dword [edi + 0x14]
lea ebx, [edi + 0xc]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0040af00
add esp, 4
test al, al
je 0x40d980
movzx eax, word [esp + 0x36]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40d9a0
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jae 0x40da45
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [edi]
movsd qword [eax], xmm0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov ecx, dword [ebx + 8]
mov dword [eax + 0x14], ecx
movsd xmm0, qword [ebx]
movsd qword [eax + 0xc], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
movzx ecx, byte [edi + 0x30]
mov byte [eax + 0x30], cl
movsd xmm0, qword [edi + 0x28]
movsd qword [eax + 0x28], xmm0
movsd xmm0, qword [edi + 0x18]
movsd xmm1, qword [edi + 0x20]
movsd qword [eax + 0x20], xmm1
movsd qword [eax + 0x18], xmm0
add dword [esp + 8], 0x38
jmp 0x40da4f
test byte [ebx], 1
jne 0x40da20
lea ebx, [edi + 0xd]
jmp 0x40da23
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
jae 0x40da49
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
movsd xmm0, qword [edi]
movsd qword [eax], xmm0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov edx, dword [ebx + 8]
mov dword [eax + 0x14], edx
movsd xmm0, qword [ebx]
movsd qword [eax + 0xc], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
movzx edx, byte [edi + 0x30]
mov byte [eax + 0x30], dl
movsd xmm0, qword [edi + 0x28]
movsd qword [eax + 0x28], xmm0
movsd xmm0, qword [edi + 0x18]
movsd xmm1, qword [edi + 0x20]
movsd qword [eax + 0x20], xmm1
movsd qword [eax + 0x18], xmm0
add dword [ecx + 4], 0x38
jmp 0x40da4f
mov ebx, dword [edi + 0x14]
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.00439f20
add esp, 4
push eax
push ebx
push str.stat_failed_for_path__s:__s
push esi
call fcn.005390b0
add esp, 0x10
jmp 0x40da4f
lea ecx, [esp + 4]
push edi
call fcn.00575530
add edi, 0x38
cmp dword [esp], edi
jne 0x40d8b0
lea edi, [esp + 0x3c]
nop
mov ebx, dword [esp + 8]
cmp dword [esp + 4], ebx
je 0x40dbb4
lea eax, [ebx - 0x38]
lea ecx, [esp + 0x30]
push eax
call fcn.00556b50
lea eax, [ebx - 0x2c]
mov ecx, edi
push eax
call fcn.00556b50
movzx eax, byte [ebx - 8]
mov esi, dword [esp + 8]
mov byte [edi + 0x24], al
movsd xmm0, qword [ebx - 0x10]
movsd qword [edi + 0x1c], xmm0
movsd xmm0, qword [ebx - 0x20]
movsd xmm1, qword [ebx - 0x18]
lea ebx, [esi - 0x38]
movsd qword [edi + 0x14], xmm1
movsd qword [edi + 0xc], xmm0
test byte [esi - 0x2c], 1
je 0x40dac3
push dword [esi - 0x24]
call fcn.004fc300
add esp, 4
test byte [ebx], 1
je 0x40dad3
push dword [esi - 0x30]
call fcn.004fc300
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x30]
mov dword [esp + 8], ebx
push eax
push edi
call fcn.0040d6e0
add esp, 8
test byte [esp + 0x3c], 1
mov ebx, eax
jne 0x40db10
test byte [esp + 0x30], 1
jne 0x40db23
test bl, bl
jne 0x40da60
jmp 0x40db37
push dword [esp + 0x44]
call fcn.004fc300
add esp, 4
test byte [esp + 0x30], 1
je 0x40dafd
push dword [esp + 0x38]
call fcn.004fc300
add esp, 4
test bl, bl
jne 0x40da60
xor ebx, ebx
test byte [esp + 0x84], 1
je 0x40db52
push dword [esp + 0x8c]
call fcn.004fc300
add esp, 4
test byte [esp + 0x78], 1
je 0x40db68
push dword [esp + 0x80]
call fcn.004fc300
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40dbd5
mov edi, dword [esp + 0x18]
cmp edi, esi
je 0x40dbc6
mov dword [esp], ebx
nop dword [eax + eax]
test byte [edi - 0x2c], 1
je 0x40db91
push dword [edi - 0x24]
call fcn.004fc300
add esp, 4
test byte [edi - 0x38], 1
lea ebx, [edi - 0x38]
je 0x40dba5
push dword [edi - 0x30]
call fcn.004fc300
add esp, 4
cmp esi, ebx
mov edi, ebx
jne 0x40db80
mov eax, dword [esp + 0x14]
mov ebx, dword [esp]
jmp 0x40dbc8
mov bl, 1
test byte [esp + 0x84], 1
jne 0x40db43
jmp 0x40db52
mov eax, esi
mov dword [esp + 0x18], esi
push eax
call fcn.004fc300
add esp, 4
mov esi, dword [esp + 4]
test esi, esi
je 0x40dc33
mov edi, dword [esp + 8]
cmp edi, esi
je 0x40dc24
mov dword [esp], ebx
nop dword [eax + eax]
test byte [edi - 0x2c], 1
je 0x40dc01
push dword [edi - 0x24]
call fcn.004fc300
add esp, 4
test byte [edi - 0x38], 1
lea ebx, [edi - 0x38]
je 0x40dc15
push dword [edi - 0x30]
call fcn.004fc300
add esp, 4
cmp esi, ebx
mov edi, ebx
jne 0x40dbf0
mov eax, dword [esp + 4]
mov ebx, dword [esp]
jmp 0x40dc26
mov eax, esi
mov dword [esp + 8], esi
push eax
call fcn.004fc300
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret