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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x138
mov ebp, edx
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x154]
mov ebx, dword [esp + 0x150]
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0x10
mov word [esp + 0x44], 0x105
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
mov word [esp + 0x68], 0
lea esi, [esp + 0x34]
mov dword [esp + 4], esi
lea eax, [esp + 0x54]
mov dword [esp], eax
mov word [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
call fcn.0042202c
test byte [esp + 0x5c], 1
jne 0x408143
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xa
lea ecx, [esp + 0x34]
call fcn.00422188
sub esp, 0x10
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x50], eax
test eax, eax
je 0x408258
mov esi, ebp
mov eax, dword [esp + 0xac]
mov dword [esp + 0x60], eax
lea edi, [esp + 0x48]
shl dword [esp + 0x50], 3
xor ebx, ebx
jmp 0x407eda
mov eax, dword [esp + 0x1c]
cmp dword [eax], 0
jne 0x408262
add ebx, 8
cmp dword [esp + 0x50], ebx
je 0x408258
mov eax, dword [esp + 0x60]
movsd xmm0, qword [eax + ebx]
movsd qword [esp + 0x28], xmm0
mov byte [esp + 0x48], 0x23
mov eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
lea ecx, [esp + 0x28]
call fcn.0042217c
sub esp, 0xc
cmp eax, 0xffffffff
je 0x407f60
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
cmp eax, ebp
mov edx, ebp
cmovb edx, eax
inc eax
cmp ebp, eax
cmovb eax, ebp
mov dword [esp + 0x64], ebx
mov ebx, edi
mov edi, esi
lea esi, [ecx + eax]
sub ebp, eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], esi
mov esi, edi
mov edi, ebx
mov ebx, dword [esp + 0x64]
jmp 0x407f78
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], str.__t_n_v_f_r
mov dword [esp + 0x24], 6
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
lea ecx, [esp + 0x34]
call fcn.00422164
sub esp, 0xc
mov ebp, dword [esp + 0x38]
cmp eax, ebp
cmovae eax, ebp
sub ebp, eax
add eax, dword [esp + 0x34]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], str.__t_n_v_f_r
mov dword [esp + 0x24], 6
movsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
mov dword [esp + 8], 0xffffffff
mov ecx, edi
call fcn.0042215e
sub esp, 0xc
inc eax
mov edx, dword [esp + 0x4c]
cmp eax, edx
cmovae eax, edx
mov ecx, edx
sub ecx, ebp
add ecx, eax
cmp edx, ecx
cmovb ecx, edx
test ecx, ecx
je 0x407ecd
mov eax, dword [esp + 0x48]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
movsd xmm0, qword [esp + 0x7c]
movsd qword [esp], xmm0
lea ecx, [esp + 0x6c]
call fcn.00421ff6
sub esp, 8
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x74], eax
movsd xmm0, qword [esp + 0x74]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x84]
movsd qword [esp + 4], xmm0
mov eax, dword [esp + 0x158]
mov dword [esp + 0xc], eax
lea ebp, [esp + 0x8c]
mov dword [esp], ebp
call fcn.004220ec
mov dword [esp + 4], ebp
mov dword [esp], esi
mov ecx, dword [esp + 0x1c]
call fcn.00407510
sub esp, 8
test byte [esp + 0xa8], 1
jne 0x408100
mov ebp, dword [esp + 0xa0]
test ebp, ebp
je 0x4080c5
mov eax, 0xffffffff
lock xadd dword [ebp + 4], eax
test eax, eax
je 0x408124
mov ebp, dword [esp + 0x98]
test ebp, ebp
je 0x407ec0
mov eax, 0xffffffff
lock xadd dword [ebp + 4], eax
test eax, eax
jne 0x407ec0
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
mov ecx, ebp
call fcn.004221ac
jmp 0x407ec0
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x8c], 0
test ecx, ecx
je 0x407ec0
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407ec0
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 8]
mov ecx, ebp
call fcn.004221ac
mov ebp, dword [esp + 0x98]
test ebp, ebp
jne 0x4080d4
jmp 0x407ec0
mov word [esp + 0x44], 0x105
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
movsd xmm0, qword [esp + 0x54]
movsd qword [esp + 0x20], xmm0
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00422062
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call fcn.00411110
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4081b9
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp], 0x1c
call sub.libc.dll_operator_new_unsigned_int_
mov edi, eax
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
mov eax, dword [sym.imp.libLLVM_17.dll_vtable_for_llvm::FileError]
add eax, 8
mov dword [edi], eax
lea ecx, [edi + 4]
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi + 0xd], 0
mov dword [edi + 9], 0
mov dword [esp], esi
call fcn.00422158
sub esp, 4
mov dword [edi + 0x18], ebx
mov ecx, dword [esp + 0x18]
mov byte [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x40823b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
test ecx, ecx
lea esi, [esp + 0xb8]
je 0x40824f
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x5c], 1
je 0x408270
jmp 0x408285
mov eax, dword [esp + 0x1c]
mov dword [eax], 0
lea esi, [esp + 0xb8]
test byte [esp + 0x5c], 1
jne 0x408285
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x54], 0
test ecx, ecx
je 0x408285
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0xac]
cmp eax, esi
je 0x408298
mov dword [esp], eax
call sub.msvcrt.dll_free
add esp, 0x138
pop esi
pop edi
pop ebx
pop ebp
ret