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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x118
mov esi, ecx
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov edi, dword [edi]
lea ebx, [esp + 0x68]
mov dword [esp + 0x20], ebx
lea ebx, [esp + 0x70]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
lea ecx, [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x18], 0
lea ecx, [esp + 0xd4]
call fcn.00403970
sub esp, 0x28
xorps xmm0, xmm0
test byte [esp + 0xe0], 1
jne 0x405aab
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, dword [eax]
movsd xmm0, qword [esp + 0x34]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x5c]
call dword [edx + 0x28]
sub esp, 0xc
test byte [esp + 0x64], 1
jne 0x4064c2
movsd xmm0, qword [esp + 0x5c]
mov edi, dword [esi]
mov dword [esp + 0xc0], 0x552db7
mov dword [esp + 0xc4], 8
movlps qword [esp + 0xe4], xmm0
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
movsd xmm0, qword [esp + 0xe4]
movsd qword [esp], xmm0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
lea ebx, [esp + 0x34]
mov ecx, ebx
call fcn.00405160
movzx eax, byte [esp + 0x34]
mov ecx, eax
shr ecx, 1
test al, 1
lea eax, [esp + 0x35]
cmovne eax, dword [esp + 0x3c]
cmovne ecx, dword [esp + 0x38]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov eax, dword [edi]
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp], xmm0
mov ecx, edi
call dword [eax + 0x74]
sub esp, 0x10
test byte [esp + 0x34], 1
je 0x405b61
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov ecx, dword [esi]
mov dword [esp + 0xb0], str.Fragment
mov dword [esp + 0xb4], 8
mov edi, dword [ebp + 0x24]
mov edx, dword [edi + 4]
and edx, 3
xor eax, eax
cmp edx, 2
sete al
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x40]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0xa8], str.FunctionLength
mov dword [esp + 0xac], 0xe
mov eax, dword [edi + 4]
shr eax, 1
and eax, 0xffe
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x20]
sub esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edi, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 0xb
ja 0x405c16
mov dword [esp + 4], 0xc
mov dword [esp], str.ReturnType:
mov ecx, edi
call fcn.005507d4
sub esp, 8
mov edi, eax
jmp 0x405c2e
mov dword [eax + 8], 0x203a6570
mov dword [eax + 4], 0x79546e72
mov dword [eax], 0x75746552
add dword [edi + 0x10], 0xc
mov eax, dword [ebp + 0x24]
mov eax, dword [eax + 4]
shr eax, 0xd
and eax, 3
mov dword [esp + 0x34], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00401350
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0xc]
jae 0x405c5d
lea ecx, [eax + 1]
mov dword [edi + 0x10], ecx
mov byte [eax], 0xa
jmp 0x405c6e
mov dword [esp], 0xa
mov ecx, edi
call fcn.005507da
sub esp, 4
mov ecx, dword [esi]
mov dword [esp + 0xa0], str.HomedParameters
mov dword [esp + 0xa4], 0xf
mov ebx, dword [ebp + 0x24]
movzx eax, word [ebx + 4]
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp], xmm0
shr eax, 0xf
mov dword [esp + 8], eax
call dword [edx + 0x40]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x98], 0x552dee
mov dword [esp + 0x9c], 3
movzx eax, word [ebx + 6]
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x98]
movsd qword [esp], xmm0
and eax, 7
mov dword [esp + 8], eax
call dword [edx + 0x10]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x90], 0x552df2
mov dword [esp + 0x94], 1
mov eax, dword [ebx + 4]
shr eax, 0x13
and eax, 1
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x90]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x88], str.LinkRegister
mov dword [esp + 0x8c], 0xc
mov eax, dword [ebx + 4]
shr eax, 0x14
and eax, 1
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x88]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x40]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x80], str.Chaining
mov dword [esp + 0x84], 8
mov eax, dword [ebx + 4]
shr eax, 0x15
and eax, 1
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x80]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x40]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x78], str.StackAdjustment
mov dword [esp + 0x7c], 0xf
mov edx, dword [ebx + 4]
shr edx, 0x16
mov eax, edx
and eax, 3
inc eax
cmp edx, 0x3f4
cmovb eax, edx
shl eax, 2
mov edx, dword [ecx]
movsd xmm0, qword [esp + 0x78]
movsd qword [esp], xmm0
mov dword [esp + 8], eax
call dword [edx + 0x1c]
sub esp, 0xc
mov ecx, dword [esi]
mov dword [esp + 0x34], str.Prologue
mov dword [esp + 0x38], 8
mov eax, dword [ecx]
movsd xmm0, qword [esp + 0x34]
movsd qword [esp], xmm0
mov dword [esp + 0x2c], ecx
call dword [eax + 0x88]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], 1
call fcn.00550930
mov dword [esp + 0x58], eax
mov edi, edx
mov eax, dword [ebx + 4]
shr eax, 0x16
je 0x405ebd
movzx eax, ax
cmp eax, 0x3f4
jb 0x405e35
test al, 4
jne 0x405ebd
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0xc
ja 0x405e67
mov dword [esp + 4], 0xd
mov dword [esp], str.sub_sp__sp__
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x405e83
mov byte [ecx + 0xc], 0x23
mov dword [ecx + 8], 0x202c7073
mov dword [ecx + 4], 0x202c7073
mov dword [ecx], 0x20627573
add dword [eax + 0x10], 0xd
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 4]
shr ecx, 0x16
mov edx, ecx
and edx, 3
inc edx
cmp ecx, 0x3f4
cmovb edx, ecx
shl edx, 2
mov dword [esp], edx
mov ecx, eax
call fcn.0055080a
sub esp, 4
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x405f48
mov byte [ecx], 0xa
inc dword [eax + 0x10]
test di, di
mov ebx, dword [esp + 0x58]
je 0x405f6e
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 5
ja 0x405efc
mov dword [esp + 4], 6
mov dword [esp], str.vpush
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x405f0c
mov word [ecx + 4], 0x2068
mov dword [ecx], 0x73757076
add dword [eax + 0x10], 6
movzx eax, di
mov dword [esp], eax
mov ecx, esi
call fcn.00403130
sub esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
cmp dword [ecx + 0xc], eax
je 0x405f2f
mov byte [eax], 0xa
inc dword [ecx + 0x10]
jmp 0x405f6e
mov dword [esp + 4], 1
mov dword [esp], 0x552e28
call fcn.005507d4
sub esp, 8
jmp 0x405f6e
mov dword [esp + 4], 1
mov dword [esp], 0x552e28
mov ecx, eax
call fcn.005507d4
sub esp, 8
test di, di
mov ebx, dword [esp + 0x58]
jne 0x405eca
mov edi, dword [ebp + 0x24]
test byte [edi + 6], 0x20
jne 0x405f8f
test bx, bx
jne 0x406084
test byte [edi + 5], 0x80
jne 0x40610a
jmp 0x406158
mov eax, ebx
and ax, 0x7ff
je 0x406004
movzx eax, ax
mov ecx, eax
shr ecx, 1
and ecx, 0x155
sub eax, ecx
mov ecx, eax
and ecx, 0x3333
shr eax, 2
and eax, 0x3333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f
mov eax, ecx
shr eax, 8
add eax, ecx
movzx edi, al
shl edi, 2
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0xf
ja 0x40603d
mov dword [esp + 4], 0x10
mov dword [esp], str.add.w_r11__sp__
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x40604b
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0xb
ja 0x4062e1
mov dword [esp + 4], 0xc
mov dword [esp], str.mov_r11__sp_n
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x405f77
movups xmm0, xmmword [str.add.w_r11__sp__]
movups xmmword [ecx], xmm0
add dword [eax + 0x10], 0x10
mov dword [esp], edi
mov ecx, eax
call fcn.0055080a
sub esp, 4
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x406068
mov byte [ecx], 0xa
inc dword [eax + 0x10]
jmp 0x406081
mov dword [esp + 4], 1
mov dword [esp], 0x552e28
mov ecx, eax
call fcn.005507d4
sub esp, 8
mov edi, dword [ebp + 0x24]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 4
ja 0x4060b6
mov dword [esp + 4], 5
mov dword [esp], str.push
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x4060c4
mov byte [ecx + 4], 0x20
mov dword [ecx], 0x68737570
add dword [eax + 0x10], 5
movzx eax, bx
mov dword [esp], eax
mov ecx, esi
call fcn.00402f20
sub esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
cmp dword [ecx + 0xc], eax
je 0x4060ed
mov byte [eax], 0xa
inc dword [ecx + 0x10]
test byte [edi + 5], 0x80
jne 0x40610a
jmp 0x406158
mov dword [esp + 4], 1
mov dword [esp], 0x552e28
call fcn.005507d4
sub esp, 8
test byte [edi + 5], 0x80
je 0x406158
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0xc
ja 0x40613c
mov dword [esp + 4], 0xd
mov dword [esp], str.push_r0_r3_n
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x406158
mov byte [ecx + 0xc], 0xa
mov dword [ecx + 8], 0x7d33722d
mov dword [ecx + 4], 0x30727b20
mov dword [ecx], 0x68737570
add dword [eax + 0x10], 0xd
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x8c]
mov eax, dword [edi + 4]
not eax
test eax, 0x6000
je 0x40646b
mov ebx, dword [esi]
mov dword [esp + 0x34], str.Epilogue
mov dword [esp + 0x38], 8
mov eax, dword [ebx]
movsd xmm0, qword [esp + 0x34]
movsd qword [esp], xmm0
mov ecx, ebx
call dword [eax + 0x88]
sub esp, 8
mov dword [esp], edi
mov dword [esp + 4], 0
call fcn.00550930
mov dword [esp + 0x2c], eax
mov eax, edi
mov edi, edx
mov eax, dword [eax + 4]
shr eax, 0x16
je 0x40625c
movzx eax, ax
cmp eax, 0x3f4
jb 0x4061d4
test al, 8
jne 0x40625c
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0xc
ja 0x406206
mov dword [esp + 4], 0xd
mov dword [esp], str.add_sp__sp__
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x406222
mov byte [ecx + 0xc], 0x23
mov dword [ecx + 8], 0x202c7073
mov dword [ecx + 4], 0x202c7073
mov dword [ecx], 0x20646461
add dword [eax + 0x10], 0xd
mov ecx, dword [ebp + 0x24]
mov ecx, dword [ecx + 4]
shr ecx, 0x16
mov edx, ecx
and edx, 3
inc edx
cmp ecx, 0x3f4
cmovb edx, ecx
shl edx, 2
mov dword [esp], edx
mov ecx, eax
call fcn.0055080a
sub esp, 4
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x4062fe
mov byte [ecx], 0xa
inc dword [eax + 0x10]
test di, di
je 0x406320
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 4
ja 0x406297
mov dword [esp + 4], 5
mov dword [esp], str.vpop
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x4062a5
mov byte [ecx + 4], 0x20
mov dword [ecx], 0x706f7076
add dword [eax + 0x10], 5
movzx eax, di
mov dword [esp], eax
mov ecx, esi
call fcn.00403130
sub esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
cmp dword [ecx + 0xc], eax
je 0x4062c8
mov byte [eax], 0xa
inc dword [ecx + 0x10]
jmp 0x406320
mov dword [esp + 4], 1
mov dword [esp], 0x552e28
call fcn.005507d4
sub esp, 8
jmp 0x406320
mov dword [ecx + 8], 0xa707320
mov dword [ecx + 4], 0x2c313172
mov dword [ecx], 0x20766f6d
add dword [eax + 0x10], 0xc
jmp 0x405f77
mov dword [esp + 4], 1
mov dword [esp], 0x552e28
mov ecx, eax
call fcn.005507d4
sub esp, 8
test di, di
jne 0x406265
cmp word [esp + 0x2c], 0
mov edi, dword [ebp + 0x24]
je 0x40638a
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 3
ja 0x40635d
mov dword [esp + 4], 4
mov dword [esp], 0x552e77
mov ecx, eax
call fcn.005507d4
sub esp, 8
jmp 0x406367
mov dword [ecx], 0x20706f70
add dword [eax + 0x10], 4
movzx eax, word [esp + 0x2c]
mov dword [esp], eax
mov ecx, esi
call fcn.00402f20
sub esp, 4
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
cmp dword [ecx + 0xc], eax
je 0x4063df
mov byte [eax], 0xa
inc dword [ecx + 0x10]
mov eax, dword [edi + 4]
test ax, ax
jns 0x40640e
test eax, 0x100000
je 0x4063a4
test eax, 0x6000
je 0x406477
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0xf
ja 0x406400
mov dword [esp + 4], 0x10
mov dword [esp], str.add_sp__sp__16_n
mov ecx, eax
call fcn.005507d4
sub esp, 8
test byte [edi + 5], 0x60
jne 0x406414
jmp 0x406461
mov dword [esp + 4], 1
mov dword [esp], 0x552e28
call fcn.005507d4
sub esp, 8
mov eax, dword [edi + 4]
test ax, ax
js 0x406392
jmp 0x40640e
movups xmm0, xmmword [str.add_sp__sp__16_n]
movups xmmword [ecx], xmm0
add dword [eax + 0x10], 0x10
test byte [edi + 5], 0x60
je 0x406461
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov esi, eax
mov eax, dword [edi + 4]
shr eax, 0xd
and eax, 3
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401350
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0xc]
jae 0x406450
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
mov byte [eax], 0xa
jmp 0x406461
mov dword [esp], 0xa
mov ecx, esi
call fcn.005507da
sub esp, 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x8c]
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0x11
ja 0x4064a2
mov dword [esp + 4], 0x12
mov dword [esp], str.ldr_pc___sp___20_n
jmp 0x4063ca
movups xmm0, xmmword [str.ldr_pc___sp___20_n]
movups xmmword [ecx], xmm0
mov word [ecx + 0x10], 0xa30
add dword [eax + 0x10], 0x12
test byte [edi + 5], 0x60
jne 0x406414
jmp 0x406461
mov dword [esp + 0xcc], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xd0], 0
lea eax, [esp + 0xc8]
mov dword [esp], eax
lea esi, [esp + 0x34]
mov ecx, esi
call fcn.00403b90
sub esp, 4
xor eax, eax
test byte [esp + 0x64], 1
je 0x406510
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x30], eax
mov word [esp + 0x110], 0x101
mov eax, dword [esp + 0x110]
mov dword [esp + 0x18], eax
movups xmm0, xmmword [esp + 0x100]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00550906
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x406553
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x54]
mov word [esp + 0xfc], 0x104
mov dword [esp + 0xec], eax
lea eax, [esp + 0xec]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.005508f4
int3