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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov edi, edx
mov esi, ecx
movzx eax, byte [0x416a64]
xor eax, 1
mov dword [esp + 8], eax
mov dword [esp + 4], edx
lea ebx, [esp + 0x88]
mov dword [esp], ebx
call fcn.00410bf6
xor eax, eax
test byte [esp + 0xb0], 1
je 0x408a22
mov eax, dword [esp + 0x88]
mov dword [esp + 0x88], 0
mov dword [esp + 0x84], eax
mov word [esp + 0x140], 0x101
mov eax, dword [esp + 0x140]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x130]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x84]
call fcn.00404df0
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x408a66
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [ebp + 8]
cmp byte [0x416e98], 1
jne 0x408f20
test al, al
je 0x408f20
mov dword [esp + 0x34], esi
mov dword [esp + 0x80], 0x416e9c
mov dword [esp], edi
lea ecx, [esp + 0x18]
call fcn.00410d22
sub esp, 4
movzx eax, byte [esp + 0x20]
and al, 1
movzx ecx, byte [esp + 0x44]
and cl, 0xfe
or cl, al
mov byte [esp + 0x44], cl
mov esi, dword [esp + 0x18]
test al, al
mov dword [esp + 0x30], edi
jne 0x408af1
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xfffffff8
jae 0x4092b2
cmp ebx, 0xb
jae 0x408af7
mov eax, ebx
add al, bl
mov byte [esp + 0x38], al
lea edi, [esp + 0x39]
test ebx, ebx
jne 0x408b22
mov byte [edi + ebx], 0
test byte [esp + 0x20], 1
mov edi, dword [esp + 0x30]
jne 0x408b41
jmp 0x408b56
mov dword [esp + 0x38], esi
jmp 0x408b56
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x60]
or ebx, 7
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.libc.dll_operator_new_unsigned_int_
mov edi, eax
mov dword [esp + 0x40], eax
add ebx, 2
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x3c], 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 + 0x30]
je 0x408b56
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x408b56
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test byte [esp + 0x44], 1
mov esi, dword [esp + 0x34]
je 0x408b6f
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x7c], eax
mov word [esp + 0x12c], 0x101
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x11c]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x7c]
call fcn.00404df0
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x408baa
mov eax, dword [ecx]
call dword [eax + 4]
mov word [esp + 0x28], 0x104
lea eax, [esp + 0x38]
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00410c62
test al, al
je 0x408c83
movzx eax, byte [esp + 0x38]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x39]
cmovne eax, dword [esp + 0x40]
mov dword [esp + 0xd8], eax
cmovne ecx, dword [esp + 0x3c]
mov dword [esp + 0xdc], ecx
movsd xmm0, qword [esp + 0xd8]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
mov dword [esp + 0xc], 0
call fcn.00410c6e
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 + 0x50], eax
cmovne ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], ecx
movsd xmm0, qword [esp + 0x50]
movsd qword [esp], xmm0
lea ecx, [esp + 0x80]
call fcn.00410b7e
sub esp, 8
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], eax
test byte [esp + 0x18], 1
je 0x408c77
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
lea ebx, [esp + 0x88]
jmp 0x408eeb
mov eax, edi
lea edi, [esp + 0x88]
mov dword [esp], eax
lea ebx, [esp + 0x18]
mov ecx, ebx
call fcn.00410d16
sub esp, 4
test byte [esp + 0x44], 1
jne 0x408cb9
test byte [esp + 0x38], 1
je 0x408cce
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x408cce
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x408cce
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [esp + 0x24]
and al, 1
movzx ecx, byte [esp + 0x44]
and cl, 0xfe
or cl, al
mov byte [esp + 0x44], cl
test al, al
jne 0x408cff
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x38], xmm0
xor eax, eax
jmp 0x408d0f
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x78], eax
mov word [esp + 0x118], 0x101
mov eax, dword [esp + 0x118]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0x108]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x78]
call fcn.00404df0
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x408d4a
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [0x416a58]
mov ecx, eax
shr ecx, 1
test al, 1
mov eax, 0x416a59
cmovne eax, dword [0x416a60]
cmovne ecx, dword [0x416a5c]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], ecx
movzx eax, byte [esp + 0x38]
mov ecx, eax
shr ecx, 1
test al, 1
lea esi, [esp + 0x39]
mov eax, dword [esp + 0x40]
cmove eax, esi
mov dword [esp + 0xc8], eax
cmovne ecx, dword [esp + 0x3c]
mov dword [esp + 0xcc], ecx
movsd xmm0, qword [esp + 0xc8]
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0xd0]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00410c20
test byte [esp + 0x24], 1
jne 0x408ded
test byte [esp + 0x18], 1
mov ebx, edi
jne 0x408e3b
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esp + 0x50], xmm0
jmp 0x408e56
movzx eax, byte [esp + 0x38]
mov ecx, eax
shr ecx, 1
test al, 1
cmovne esi, dword [esp + 0x40]
mov dword [esp + 0xc0], esi
cmovne ecx, dword [esp + 0x3c]
mov dword [esp + 0xc4], ecx
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00410c6e
mov esi, dword [esp + 0x34]
mov ebx, edi
jmp 0x408e5a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp], ecx
lea ecx, [esp + 0x50]
call fcn.00406f50
sub esp, 8
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
movzx eax, byte [esp + 0x50]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x51]
cmovne eax, dword [esp + 0x58]
mov dword [esp + 0x68], eax
cmovne ecx, dword [esp + 0x54]
mov dword [esp + 0x6c], ecx
movsd xmm0, qword [esp + 0x68]
movsd qword [esp], xmm0
lea ecx, [esp + 0x80]
call fcn.00410b7e
sub esp, 8
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], eax
test byte [esp + 0x50], 1
je 0x408eba
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
test byte [esp + 0x24], 1
jne 0x408ed6
test byte [esp + 0x18], 1
je 0x408eeb
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x408eeb
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
je 0x408eeb
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x44], 1
jne 0x408f07
test byte [esp + 0x38], 1
je 0x408f1c
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x408f1c
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x408f1c
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, byte [ebp + 8]
test al, al
je 0x40923e
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], eax
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp], xmm0
call fcn.00410bd2
cmp eax, 3
jne 0x40923e
mov dword [esp], edi
lea edi, [esp + 0x50]
mov ecx, edi
call fcn.00410d16
sub esp, 4
xor eax, eax
test byte [esp + 0x5c], 1
je 0x408f87
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x74], eax
mov word [esp + 0x104], 0x101
mov eax, dword [esp + 0x104]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0xf4]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x74]
call fcn.00404df0
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x408fc2
mov eax, dword [ecx]
call dword [eax + 4]
mov word [esp + 0x28], 0x104
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x18]
call fcn.00409970
mov edi, eax
cmp byte [0x416e98], 1
jne 0x40900e
test byte [edi + 0x3c], 8
jne 0x40900e
test byte [esp + 0x5c], 1
jne 0x409229
test byte [esp + 0x50], 1
je 0x40923e
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x40923e
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], 0
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 1
lea ecx, [esp + 0x18]
call fcn.00410d04
sub esp, 0xc
mov dword [esp], edi
lea ecx, [esp + 0x38]
call fcn.00410d3a
sub esp, 4
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
movzx eax, word [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x40]
mov word [esp + 0x28], ax
mov esi, dword [esp + 0x4c]
test edi, edi
mov dword [esp + 0x30], ecx
je 0x4090a4
lea ecx, [esp + 0x1c]
mov eax, dword [edi]
mov dword [esp], edi
call dword [eax]
sub esp, 4
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x409119
mov eax, dword [ecx]
mov dword [esp], ecx
lea ecx, [esp + 0x38]
call dword [eax]
sub esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x64], eax
cmp esi, 4
jae 0x409124
cmp dword [esp + 0x2c], 4
mov esi, dword [esp + 0x34]
jb 0x409160
cmp dword [esp + 0x20], ebx
je 0x409160
lea edi, [esp + 0x18]
nop dword [eax]
movzx eax, byte [0x416e98]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.004089d0
mov ecx, edi
call fcn.00408240
cmp dword [esp + 0x2c], 4
jb 0x409160
cmp dword [esp + 0x20], ebx
jne 0x4090f0
jmp 0x409160
xor eax, eax
mov dword [esp + 0x64], eax
cmp esi, 4
jb 0x4090cf
cmp dword [esp + 0x20], ebx
mov esi, dword [esp + 0x34]
je 0x409160
lea edi, [esp + 0x18]
nop word cs:[eax + eax]
movzx eax, byte [0x416e98]
mov dword [esp], eax
mov ecx, esi
mov edx, edi
call fcn.004089d0
mov ecx, edi
call fcn.00408240
cmp dword [esp + 0x20], ebx
jne 0x409140
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x40916d
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 + 0x60]
je 0x409186
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x409193
mov eax, dword [ecx]
call dword [eax + 8]
test esi, esi
je 0x40919e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], eax
mov dword [esp + 0x68], 0
mov word [esp + 0xf0], 0x101
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x10], eax
movups xmm0, xmmword [esp + 0xe0]
movups xmmword [esp], xmm0
lea ecx, [esp + 0x70]
call fcn.00404df0
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4091e5
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4091f2
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x5c], 1
jne 0x409212
test byte [esp + 0x50], 1
je 0x409287
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
jmp 0x409287
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], 0
test ecx, ecx
je 0x409287
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x409287
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], 0
test ecx, ecx
je 0x40923e
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jae 0x409277
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x88], 0
mov dword [eax], ecx
movups xmm0, xmmword [esp + 0x8c]
movups xmm1, xmmword [esp + 0x9c]
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x14], xmm1
add eax, 0x28
jmp 0x409284
mov dword [esp], ebx
mov ecx, esi
call fcn.00409f30
sub esp, 4
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x88], 0
test byte [esp + 0xb0], 1
test ecx, ecx
je 0x4092aa
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x38]
call fcn.00404d50
int3