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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1e0
mov esi, esp
mov dword [esi + 0x1c], ebp
mov al, byte [ebp + 0x18]
mov byte [esi + 0x9b], al
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x9c], edi
mov edi, dword [ebp + 8]
mov dword [esi + 0xa0], edi
mov edi, esp
mov dword [esi + 0x1cc], edi
mov dword [esi + 0x1d8], 0xffffffff
lea edi, [esi + 0x1d0]
mov dword [esi + 0x1d4], 0x50bfa0
mov ebx, dword fs:[0]
mov dword [esi + 0x1d0], ebx
mov dword fs:[0], edi
mov dword [esi + 0xac], edx
mov dword [esi + 0xb0], ecx
and al, 1
mov byte [esi + 0xbf], al
lea eax, [esi + 0xac]
mov dword [esi + 0xb4], eax
mov dword [esi + 0x1d8], 0
call fcn.00504be0
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], eax
jmp 0x505a78
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa8]
mov dword [esi + 0x90], ecx
mov dword [esi + 0x94], eax
call fcn.004e5dc0
mov byte [esi + 0x9a], al
jmp 0x505a9d
mov al, byte [esi + 0x9a]
test al, 1
jne 0x505ab5
jmp 0x505aa9
mov dword [esi + 0xb8], 0
jmp 0x505ac1
lea eax, [0x410480]
mov dword [esi + 0xb8], eax
mov edx, dword [esi + 0x9c]
mov eax, dword [esi + 0xa0]
mov edi, dword [esi + 0x94]
mov ebx, dword [esi + 0x90]
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0x84], ecx
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], edx
lea eax, [esi + 0xb4]
mov dword [esi + 0xd8], eax
mov al, byte [esi + 0x9b]
mov dword [esi + 0xdc], 0x602490
and al, 1
mov byte [esi + 0xe3], al
mov eax, dword [esi + 0xa0]
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], ecx
mov ecx, dword [eax + 0xc]
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004f19a0
mov dword [esi + 0x88], edx
mov dword [esi + 0x8c], eax
jmp 0x505b4a
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x8c]
mov dword [esi + 0xc8], ecx
mov dword [esi + 0xcc], eax
cmp dword [esi + 0xc8], 0
jne 0x505ba5
mov al, byte [esi + 0x9b]
movzx ecx, al
and ecx, 1
mov eax, esp
mov dword [eax], ecx
call fcn.00550eb0
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], eax
jmp 0x505b8b
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x80]
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc4], eax
jmp 0x50604a
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0xcc]
mov dword [esi + 0x74], ecx
mov dword [esi + 0xf0], ecx
mov ecx, dword [eax + 4]
mov eax, esp
mov dword [eax], ecx
call fcn.0050ac40
mov dword [esi + 0x78], eax
jmp 0x505bcb
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x78]
mov dword [esi + 0xf4], ecx
shr ecx, 1
cmp eax, ecx
jbe 0x505bf1
mov eax, dword [esi + 0x78]
add eax, 1
mov dword [esi + 0x70], eax
setb al
jb 0x506039
jmp 0x505c33
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x90]
mov edi, dword [esi + 0x84]
mov eax, esp
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edx
lea edx, [esi + 0xb4]
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 8], 0x602490
call fcn.00509130
jmp 0x505c24
mov dword [esi + 0xc0], 0x80000001
jmp 0x50604a
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x70]
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00544000
mov dword [esi + 0x6c], eax
jmp 0x505c4a
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x90]
mov edi, dword [esi + 0x94]
mov ebx, dword [esi + 0x6c]
mov al, byte [esi + 0x9b]
mov dword [esi + 0x188], ecx
mov dword [esi + 0x18c], ebx
lea ecx, [esi + 0xb4]
mov dword [esi + 0x190], ecx
mov dword [esi + 0x194], 0x602490
mov cl, al
and cl, 1
mov byte [esi + 0x19b], cl
mov dword [esi + 0x19c], edx
mov dword [esi + 0x1a0], edi
movzx ecx, al
and ecx, 1
mov eax, esp
mov dword [eax + 0x14], ecx
mov ecx, dword [esi + 0xa0]
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
lea ecx, [esi + 0x130]
mov dword [eax], ecx
call fcn.00508e50
jmp 0x505cca
mov eax, esp
lea ecx, [esi + 0x130]
mov dword [eax + 4], ecx
lea ecx, [esi + 0x118]
mov dword [eax], ecx
call fcn.0041c9d0
jmp 0x505ce4
mov edx, dword [esi + 0x118]
xor eax, eax
mov ecx, 1
cmp edx, 0
cmove eax, ecx
cmp eax, 0
jne 0x505dae
mov ecx, dword [esi + 0xa0]
movsd xmm0, qword [esi + 0x128]
movsd qword [esi + 0x180], xmm0
movsd xmm0, qword [esi + 0x118]
movsd xmm1, qword [esi + 0x120]
movsd qword [esi + 0x178], xmm1
movsd qword [esi + 0x170], xmm0
movsd xmm0, qword [esi + 0x180]
movsd qword [esi + 0x158], xmm0
movsd xmm0, qword [esi + 0x170]
movsd xmm1, qword [esi + 0x178]
movsd qword [esi + 0x150], xmm1
movsd qword [esi + 0x148], xmm0
movsd xmm0, qword [esi + 0x158]
movsd qword [esi + 0x110], xmm0
movsd xmm0, qword [esi + 0x148]
movsd xmm1, qword [esi + 0x150]
movsd qword [esi + 0x108], xmm1
movsd qword [esi + 0x100], xmm0
mov dword [esi + 0x1d8], 1
mov eax, esp
mov dword [eax], ecx
call fcn.00550c00
mov dword [esi + 0x68], eax
jmp 0x505df8
mov ecx, dword [esi + 0x11c]
mov edx, dword [esi + 0x120]
mov dword [esi + 0x1b8], ecx
mov dword [esi + 0x1bc], edx
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 8], 0x6025f4
call fcn.0040d790
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], eax
jmp 0x505de1
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov dword [esi + 0xf8], ecx
mov dword [esi + 0xfc], eax
jmp 0x50601f
mov ecx, dword [esi + 0x68]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax], 0
call fcn.0052ab30
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], eax
jmp 0x505e13
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x160], ecx
mov dword [esi + 0x164], eax
mov eax, esp
lea ecx, [esi + 0x160]
mov dword [eax], ecx
call fcn.0052a300
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], eax
jmp 0x505e3c
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x16c], eax
cmp dword [esi + 0x168], 0
jne 0x505e6b
mov eax, esp
lea ecx, [esi + 0x100]
mov dword [eax], ecx
call fcn.00440e90
mov dword [esi + 0x4c], eax
jmp 0x505e91
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x16c]
mov dword [esi + 0x44], edx
mov dword [esi + 0x1a4], edx
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.0050a780
mov dword [esi + 0x48], eax
jmp 0x505ed2
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x4c]
mov eax, esp
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.004e5e20
jmp 0x505ea8
mov dword [esi + 0xf8], 0x80000001
mov dword [esi + 0x1d8], 0
mov eax, esp
lea ecx, [esi + 0x100]
mov dword [eax], ecx
call fcn.004104a0
jmp 0x505ecd
jmp 0x50601f
mov eax, dword [esi + 0x48]
movzx ecx, byte [eax]
mov eax, esp
mov dword [eax], ecx
call fcn.0050ae20
mov byte [esi + 0x43], al
jmp 0x505ee6
mov al, byte [esi + 0x43]
test al, 1
jne 0x505ef2
jmp 0x505e25
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x44]
mov eax, esp
mov dword [eax + 8], edx
mov dword [eax + 4], ecx
lea ecx, [esi + 0xb4]
mov dword [eax], ecx
call fcn.00506ea0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
jmp 0x505f18
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x1a8], ecx
mov dword [esi + 0x1ac], eax
mov eax, esp
lea ecx, [esi + 0x100]
mov dword [eax], ecx
call fcn.00440d70
mov dword [esi + 0x34], eax
jmp 0x505f3e
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x38]
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.00509f80
mov dword [esi + 0x30], eax
jmp 0x505f5b
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x44]
mov edi, dword [esi + 0x90]
mov eax, dword [esi + 0x30]
mov ebx, eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x1b4], eax
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.005088d0
mov dword [esi + 0x2c], eax
jmp 0x505f8c
mov eax, esp
lea ecx, [esi + 0x100]
mov dword [eax], ecx
call fcn.00440d70
mov dword [esi + 0x24], eax
jmp 0x505fa0
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov edi, dword [esi + 0x90]
mov eax, esp
mov dword [eax + 8], edi
mov dword [eax + 4], edx
mov dword [eax], ecx
call fcn.005088d0
mov dword [esi + 0x20], eax
jmp 0x505fc0
mov eax, dword [esi + 0x90]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x1c0], edx
mov dword [esi + 0x1c4], ecx
mov dword [esi + 0x1c8], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
call fcn.00480ae0
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x90]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x505e25
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0xfc]
mov dword [esi + 0xc0], ecx
mov dword [esi + 0xc4], eax
jmp 0x50604a
mov eax, esp
mov dword [eax], 0x602734
call fcn.005f7050
jmp 0x506048
ud2
mov eax, dword [esi + 0xc0]
mov edx, dword [esi + 0xc4]
mov ecx, dword [esi + 0x1d0]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret