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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov edi, edx
mov esi, ecx
movzx eax, byte [0x417a5c]
xor eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], edx
lea ebx, [esp + 0x98]
mov dword [esp], ebx
call fcn.00410eaa
xor eax, eax
test byte [esp + 0xc0], 1
je 0x408972
mov eax, dword [esp + 0x98]
mov dword [esp + 0x98], 0
mov dword [esp + 0x8c], eax
mov word [esp + 0x150], 0x101
mov eax, dword [esp + 0x150]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x140]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x8c]
call fcn.00404c30
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x4089b6
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [ebp + 8]
cmp byte [0x417e90], 1
jne 0x408ebe
test al, al
je 0x408ebe
mov dword [esp + 0x64], esi
mov dword [esp + 0x88], 0x417e94
mov dword [esp], edi
lea ecx, [esp + 0x18]
call fcn.00410fd6
sub esp, 4
movzx eax, byte [esp + 0x20]
and al, 1
movzx ecx, byte [esp + 0x54]
and cl, 0xfe
or cl, al
mov byte [esp + 0x54], cl
mov esi, dword [esp + 0x18]
test al, al
jne 0x408a41
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xfffffff0
jae 0x409262
mov dword [esp + 0x44], edi
cmp ebx, 0xb
jae 0x408a47
mov eax, ebx
add al, bl
mov byte [esp + 0x48], al
lea edi, [esp + 0x49]
test ebx, ebx
jne 0x408a72
mov byte [edi + ebx], 0
test byte [esp + 0x20], 1
mov edi, dword [esp + 0x44]
jne 0x408a91
jmp 0x408aa6
mov dword [esp + 0x48], esi
jmp 0x408aa6
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0x68]
or ebx, 0xf
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.libc.dll_operator_new_unsigned_int_
mov edi, eax
mov dword [esp + 0x50], eax
add ebx, 2
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x4c], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_memmove
mov byte [edi + ebx], 0
test byte [esp + 0x20], 1
mov edi, dword [esp + 0x44]
je 0x408aa6
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x408aa6
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test byte [esp + 0x54], 1
mov esi, dword [esp + 0x64]
je 0x408abf
mov eax, dword [esp + 0x48]
mov dword [esp + 0x48], 0
mov ebx, edi
mov dword [esp + 0x84], eax
mov word [esp + 0x13c], 0x101
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x12c]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x84]
call fcn.00404c30
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x408b05
mov eax, dword [ecx]
call dword [eax + 4]
mov word [esp + 0x28], 0x104
lea eax, [esp + 0x48]
mov dword [esp + 0x18], eax
lea edi, [esp + 0x18]
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.00410f16
test al, al
je 0x408be0
movzx eax, byte [esp + 0x48]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x49]
cmovne eax, dword [esp + 0x50]
mov dword [esp + 0xe8], eax
cmovne ecx, dword [esp + 0x4c]
mov dword [esp + 0xec], ecx
movsd xmm0, qword [esp + 0xe8]
movsd qword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0xc], 0
call fcn.00410f22
movzx eax, byte [esp + 0x18]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x19]
cmovne eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
cmovne ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
lea ecx, [esp + 0x88]
call fcn.00410e32
sub esp, 8
mov dword [esp + 0xa0], edx
mov dword [esp + 0x9c], eax
test byte [esp + 0x18], 1
je 0x408bd2
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov edi, ebx
lea ebx, [esp + 0x98]
jmp 0x408e89
mov edi, ebx
mov dword [esp], ebx
lea ebx, [esp + 0x18]
mov ecx, ebx
call fcn.00410fca
sub esp, 4
test byte [esp + 0x54], 1
jne 0x408c0f
test byte [esp + 0x48], 1
je 0x408c24
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x408c24
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], 0
test ecx, ecx
je 0x408c24
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [esp + 0x24]
and al, 1
movzx ecx, byte [esp + 0x54]
and cl, 0xfe
or cl, al
mov byte [esp + 0x54], cl
test al, al
jne 0x408c55
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x48], xmm0
xor eax, eax
jmp 0x408c65
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x80], eax
mov word [esp + 0x128], 0x101
mov eax, dword [esp + 0x128]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x118]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x80]
call fcn.00404c30
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x408ca9
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [0x417a50]
mov ecx, eax
shr ecx, 1
test al, 1
mov eax, 0x417a51
cmovne eax, dword [0x417a58]
cmovne ecx, dword [0x417a54]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
movzx eax, byte [esp + 0x48]
mov ecx, eax
shr ecx, 1
test al, 1
lea esi, [esp + 0x49]
mov eax, dword [esp + 0x50]
cmove eax, esi
mov dword [esp + 0xd8], eax
cmovne ecx, dword [esp + 0x4c]
mov dword [esp + 0xdc], ecx
movsd xmm0, qword [esp + 0xd8]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0xe0]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00410ed4
test byte [esp + 0x24], 1
jne 0x408d4d
test byte [esp + 0x18], 1
jne 0x408d95
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x30], xmm0
jmp 0x408df1
movzx eax, byte [esp + 0x48]
mov ecx, eax
shr ecx, 1
test al, 1
cmovne esi, dword [esp + 0x50]
mov dword [esp + 0xd0], esi
cmovne ecx, dword [esp + 0x4c]
mov dword [esp + 0xd4], ecx
movsd xmm0, qword [esp + 0xd0]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00410f22
jmp 0x408df1
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
cmp ebx, 0xa
ja 0x408db0
lea eax, [esp + 0x31]
mov ecx, ebx
add cl, bl
mov byte [esp + 0x30], cl
jmp 0x408de0
mov dword [esp + 0x44], edi
cmp ebx, 0xfffffff0
jae 0x40926b
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
mov dword [esp], eax
call sub.libc.dll_operator_new_unsigned_int_
mov dword [esp + 0x38], eax
add edi, 2
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
mov edi, dword [esp + 0x44]
inc ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_memmove
lea ebx, [esp + 0x98]
movzx eax, byte [esp + 0x30]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x31]
cmovne eax, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
cmovne ecx, dword [esp + 0x34]
mov dword [esp + 0x70], ecx
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp], xmm0
lea ecx, [esp + 0x88]
call fcn.00410e32
sub esp, 8
mov dword [esp + 0xa0], edx
mov dword [esp + 0x9c], eax
test byte [esp + 0x30], 1
mov esi, dword [esp + 0x64]
je 0x408e58
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
test byte [esp + 0x24], 1
jne 0x408e74
test byte [esp + 0x18], 1
je 0x408e89
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x408e89
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x408e89
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x54], 1
jne 0x408ea5
test byte [esp + 0x48], 1
je 0x408eba
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x408eba
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x48], 0
test ecx, ecx
je 0x408eba
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [ebp + 8]
test al, al
je 0x4091ee
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], eax
movsd xmm0, qword [esp + 0xc8]
movsd qword [esp], xmm0
call fcn.00410e86
cmp eax, 2
jne 0x4091ee
mov dword [esp], edi
lea edi, [esp + 0x30]
mov ecx, edi
call fcn.00410fca
sub esp, 4
xor eax, eax
test byte [esp + 0x3c], 1
je 0x408f25
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x7c], eax
mov word [esp + 0x114], 0x101
mov eax, dword [esp + 0x114]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x104]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x7c]
call fcn.00404c30
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x408f60
mov eax, dword [ecx]
call dword [eax + 4]
mov word [esp + 0x28], 0x104
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x18]
call fcn.004099a0
mov edi, eax
cmp byte [0x417e90], 1
jne 0x408fac
test byte [edi + 0x3c], 8
jne 0x408fac
test byte [esp + 0x3c], 1
jne 0x4091d9
test byte [esp + 0x30], 1
je 0x4091ee
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x4091ee
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], 0
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 1
lea ecx, [esp + 0x18]
call fcn.00410fb8
sub esp, 0xc
mov dword [esp], edi
lea ecx, [esp + 0x48]
call fcn.00410fee
sub esp, 4
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
movzx ecx, word [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x20], edi
mov word [esp + 0x28], cx
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x90], eax
test esi, esi
je 0x409050
lea ecx, [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp], esi
mov dword [esp + 0x44], edi
mov edi, edx
call dword [eax]
sub esp, 4
mov edx, edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x94]
mov dword [esp + 0x2c], esi
test edx, edx
mov dword [esp + 0x68], edx
je 0x4090c9
mov eax, dword [edx]
mov dword [esp], edx
lea ecx, [esp + 0x48]
call dword [eax]
sub esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x74], eax
cmp dword [esp + 0x90], 4
jae 0x4090db
cmp esi, 4
mov esi, dword [esp + 0x64]
jb 0x409110
cmp dword [esp + 0x20], ebx
je 0x409110
lea edi, [esp + 0x18]
nop
movzx eax, byte [0x417e90]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.00408920
mov ecx, edi
call fcn.00408170
cmp dword [esp + 0x2c], 4
jb 0x409110
cmp dword [esp + 0x20], ebx
jne 0x4090a0
jmp 0x409110
mov dword [esp + 0x74], 0
cmp dword [esp + 0x90], 4
jb 0x409087
cmp edi, ebx
mov esi, dword [esp + 0x64]
je 0x409110
lea edi, [esp + 0x18]
nop word [eax + eax]
movzx eax, byte [0x417e90]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.00408920
mov ecx, edi
call fcn.00408170
cmp dword [esp + 0x20], ebx
jne 0x4090f0
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x40911d
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test ecx, ecx
mov esi, dword [esp + 0x44]
je 0x409136
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x409143
mov eax, dword [ecx]
call dword [eax + 8]
test esi, esi
je 0x40914e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], 0
mov word [esp + 0x100], 0x101
mov eax, dword [esp + 0x100]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0xf0]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x78]
call fcn.00404c30
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x409195
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x4091a2
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x3c], 1
jne 0x4091c2
test byte [esp + 0x30], 1
je 0x409237
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x409237
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x409237
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409237
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x4091ee
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jae 0x40922a
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x98], 0
mov dword [eax], ecx
movups xmm0, xmmword [esp + 0x9c]
movups xmm1, xmmword [esp + 0xac]
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm1
add eax, 0x28
mov dword [esi + 4], eax
jmp 0x409237
mov dword [esp], ebx
mov ecx, esi
call fcn.00409f90
sub esp, 4
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x98], 0
test byte [esp + 0xc0], 1
test ecx, ecx
je 0x40925a
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x48]
call fcn.00404b90
lea ecx, [esp + 0x30]
call fcn.00404b90
int3