Function at 0x4059c0
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 + 0xc8]
call fcn.00403970
sub esp, 0x28
xorps xmm0, xmm0
test byte [esp + 0xd4], 1
jne 0x405a7b
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
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 0x406492
movsd xmm0, qword [esp + 0x5c]
mov edi, dword [esi]
mov dword [esp + 0xc0], 0x54bde7
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.00405180
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 0x405b31
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 0x405be6
mov dword [esp + 4], 0xc
mov dword [esp], str.ReturnType:
mov ecx, edi
call fcn.0054a3c0
sub esp, 8
mov edi, eax
jmp 0x405bfe
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.00401340
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0xc]
jae 0x405c2d
lea ecx, [eax + 1]
mov dword [edi + 0x10], ecx
mov byte [eax], 0xa
jmp 0x405c3e
mov dword [esp], 0xa
mov ecx, edi
call fcn.0054a3c6
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], 0x54be1e
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], 0x54be22
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.0054a51c
mov dword [esp + 0x58], eax
mov edi, edx
mov eax, dword [ebx + 4]
shr eax, 0x16
je 0x405e8d
movzx eax, ax
cmp eax, 0x3f4
jb 0x405e05
test al, 4
jne 0x405e8d
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 0x405e37
mov dword [esp + 4], 0xd
mov dword [esp], str.sub_sp__sp__
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x405e53
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.0054a3f6
sub esp, 4
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x405f18
mov byte [ecx], 0xa
inc dword [eax + 0x10]
test di, di
mov ebx, dword [esp + 0x58]
je 0x405f3e
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 0x405ecc
mov dword [esp + 4], 6
mov dword [esp], str.vpush
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x405edc
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 0x405eff
mov byte [eax], 0xa
inc dword [ecx + 0x10]
jmp 0x405f3e
mov dword [esp + 4], 1
mov dword [esp], 0x54be58
call fcn.0054a3c0
sub esp, 8
jmp 0x405f3e
mov dword [esp + 4], 1
mov dword [esp], 0x54be58
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
test di, di
mov ebx, dword [esp + 0x58]
jne 0x405e9a
mov edi, dword [ebp + 0x24]
test byte [edi + 6], 0x20
jne 0x405f5f
test bx, bx
jne 0x406054
test byte [edi + 5], 0x80
jne 0x4060da
jmp 0x406128
mov eax, ebx
and ax, 0x7ff
je 0x405fd4
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 0x40600d
mov dword [esp + 4], 0x10
mov dword [esp], str.add.w_r11__sp__
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x40601b
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 0x4062b1
mov dword [esp + 4], 0xc
mov dword [esp], str.mov_r11__sp_n
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x405f47
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.0054a3f6
sub esp, 4
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x406038
mov byte [ecx], 0xa
inc dword [eax + 0x10]
jmp 0x406051
mov dword [esp + 4], 1
mov dword [esp], 0x54be58
mov ecx, eax
call fcn.0054a3c0
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 0x406086
mov dword [esp + 4], 5
mov dword [esp], str.push
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x406094
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 0x4060bd
mov byte [eax], 0xa
inc dword [ecx + 0x10]
test byte [edi + 5], 0x80
jne 0x4060da
jmp 0x406128
mov dword [esp + 4], 1
mov dword [esp], 0x54be58
call fcn.0054a3c0
sub esp, 8
test byte [edi + 5], 0x80
je 0x406128
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 0x40610c
mov dword [esp + 4], 0xd
mov dword [esp], str.push_r0_r3_n
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x406128
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 0x40643b
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.0054a51c
mov dword [esp + 0x2c], eax
mov eax, edi
mov edi, edx
mov eax, dword [eax + 4]
shr eax, 0x16
je 0x40622c
movzx eax, ax
cmp eax, 0x3f4
jb 0x4061a4
test al, 8
jne 0x40622c
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 0x4061d6
mov dword [esp + 4], 0xd
mov dword [esp], str.add_sp__sp__
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x4061f2
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.0054a3f6
sub esp, 4
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x4062ce
mov byte [ecx], 0xa
inc dword [eax + 0x10]
test di, di
je 0x4062f0
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 0x406267
mov dword [esp + 4], 5
mov dword [esp], str.vpop
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x406275
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 0x406298
mov byte [eax], 0xa
inc dword [ecx + 0x10]
jmp 0x4062f0
mov dword [esp + 4], 1
mov dword [esp], 0x54be58
call fcn.0054a3c0
sub esp, 8
jmp 0x4062f0
mov dword [ecx + 8], 0xa707320
mov dword [ecx + 4], 0x2c313172
mov dword [ecx], 0x20766f6d
add dword [eax + 0x10], 0xc
jmp 0x405f47
mov dword [esp + 4], 1
mov dword [esp], 0x54be58
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
test di, di
jne 0x406235
cmp word [esp + 0x2c], 0
mov edi, dword [ebp + 0x24]
je 0x40635a
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 0x40632d
mov dword [esp + 4], 4
mov dword [esp], 0x54bea7
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
jmp 0x406337
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 0x4063af
mov byte [eax], 0xa
inc dword [ecx + 0x10]
mov eax, dword [edi + 4]
test ax, ax
jns 0x4063de
test eax, 0x100000
je 0x406374
test eax, 0x6000
je 0x406447
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 0x4063d0
mov dword [esp + 4], 0x10
mov dword [esp], str.add_sp__sp__16_n
mov ecx, eax
call fcn.0054a3c0
sub esp, 8
test byte [edi + 5], 0x60
jne 0x4063e4
jmp 0x406431
mov dword [esp + 4], 1
mov dword [esp], 0x54be58
call fcn.0054a3c0
sub esp, 8
mov eax, dword [edi + 4]
test ax, ax
js 0x406362
jmp 0x4063de
movups xmm0, xmmword [str.add_sp__sp__16_n]
movups xmmword [ecx], xmm0
add dword [eax + 0x10], 0x10
test byte [edi + 5], 0x60
je 0x406431
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.00401340
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0xc]
jae 0x406420
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
mov byte [eax], 0xa
jmp 0x406431
mov dword [esp], 0xa
mov ecx, esi
call fcn.0054a3c6
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 0x406472
mov dword [esp + 4], 0x12
mov dword [esp], str.ldr_pc___sp___20_n
jmp 0x40639a
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 0x4063e4
jmp 0x406431
xorps xmm0, xmm0
movsd qword [esp + 0xd8], xmm0
mov dword [esp + 0xe0], 0
lea eax, [esp + 0xd8]
mov dword [esp], eax
lea esi, [esp + 0x34]
mov ecx, esi
call fcn.00403b80
sub esp, 4
xor eax, eax
test byte [esp + 0x64], 1
je 0x4064d6
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.0054a4f2
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x406519
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.0054a4e0
int3