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

Disassembly:
push 0xffffffffffffffff
push 0x5f7810
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x64c874]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x250]
mov ebp, dword [esp + 0x24c]
mov edi, dword [esp + 0x254]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], ebx
call fcn.0050b1d0
push esi
lea eax, [esp + 0x108]
push eax
call fcn.004bb830
mov esi, 1
mov dword [esp + 0x244], esi
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x51494b
lea eax, [esp + 0x1cc]
mov ecx, str.magnet:
call fcn.004ad2f0
test al, al
je 0x5149b1
lea ecx, [esp + 0x104]
push ecx
mov edx, edi
lea ecx, [esp + 0x1cc]
call fcn.00582640
mov edx, dword [edi]
add esp, 4
neg edx
sbb edx, edx
test edx, fcn.00489120
je 0x5149a5
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
lea eax, [esp + 0x104]
push eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x248], bl
call fcn.00489b90
mov eax, ebp
jmp 0x5153d3
lea eax, [esp + 0x1c8]
call fcn.004321c0
mov ecx, dword [esp + 0x108]
cmp ecx, ebx
je 0x514a07
cmp dword [ecx + 0x94], ebx
jle 0x514a07
mov eax, dword [ecx + 0xc]
cmp eax, ebx
je 0x5149d5
mov edx, dword [ecx + 0x10]
sub edx, eax
sar edx, 5
jne 0x514a07
push 0x10
mov esi, edi
call fcn.004b2660
lea eax, [esp + 0x104]
mov dword [ebp], ebx
push eax
mov dword [ebp + 4], ebx
mov dword [esp + 0x28], 1
mov byte [esp + 0x248], bl
call fcn.00489b90
mov eax, ebp
jmp 0x5153d3
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xbb8], bl
je 0x514a53
test byte [0x65b670], 1
jne 0x514a39
or dword [0x65b670], esi
push 0x5fbd80
mov dword [0x65b674], 0x6155fc
call fcn.005b89dc
add esp, 4
mov eax, 0x12
mov ecx, 0x65b674
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
jmp 0x514986
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
je 0x514a87
add ecx, 0x140
jmp 0x514b1d
mov eax, dword [esp + 0x1dc]
cmp eax, ebx
je 0x514b16
push eax
push ebx
lea ecx, [esp + 0x1d0]
call fcn.004417c0
push eax
lea eax, [esp + 0x88]
call fcn.0049d4d0
xor edx, edx
mov ecx, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
call fcn.00502a50
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xe4], eax
lea eax, [esp + 0xdc]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], edx
mov dword [esp + 0x20], eax
jmp 0x514b21
lea ecx, [esp + 0x130]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x78]
call fcn.005144c0
lea esi, [esp + 0x18]
mov edi, eax
call fcn.0048fed0
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x514b62
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x514b62
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x514be7
cmp dword [esp + 0x1f8], esi
je 0x514d3c
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1e4]
lea ebx, [esp + 0x30]
call fcn.00514550
lea esi, [esp + 0x28]
mov edi, eax
call fcn.0048fed0
lea edi, [esp + 0x18]
mov byte [esp + 0x244], 4
call fcn.00517c20
mov eax, esi
mov byte [esp + 0x244], 3
call fcn.00565750
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x34]
test eax, eax
je 0x514bdb
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x514bdb
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [esp + 0x18]
test esi, esi
je 0x514d3c
mov eax, dword [esp + 0x21c]
and eax, 0x80
xor ecx, ecx
or eax, ecx
jne 0x514cee
cmp dword [esp + 0x1f8], eax
je 0x514c24
cmp dword [esi + 0x3f0], eax
jne 0x514c24
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x1ec]
push eax
lea ecx, [esi + 0x3dc]
call fcn.0040b390
cmp dword [esp + 0x1dc], 0
je 0x514c4e
cmp dword [esi + 0x3d4], 0
jne 0x514c4e
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1d0]
push ecx
lea ecx, [esi + 0x3c0]
call fcn.0040b390
cmp dword [esp + 0x214], 0
je 0x514c78
cmp dword [esi + 0x40c], 0
jne 0x514c78
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x208]
push edx
lea ecx, [esi + 0x3f8]
call fcn.0040b390
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x514c8c
lea eax, [ecx + 8]
mov edx, 1
lock xadd dword [eax], edx
test ecx, ecx
mov dword [ebp], esi
mov dword [ebp + 4], ecx
je 0x514ca2
lea eax, [ecx + 8]
mov edx, 1
lock xadd dword [eax], edx
test ecx, ecx
mov ebx, 1
mov dword [esp + 0x24], ebx
je 0x514cc2
lea eax, [ecx + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x514cc2
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
lea eax, [esp + 0x18]
mov byte [esp + 0x244], bl
call fcn.00565750
lea eax, [esp + 0x104]
push eax
mov byte [esp + 0x248], 0
call fcn.00489b90
mov eax, ebp
jmp 0x5153d3
mov esi, dword [esp + 0x38]
push 0x13
call fcn.004b2660
mov eax, 1
mov dword [esp + 0x24], eax
mov byte [esp + 0x244], al
mov dword [ebp], 0
lea eax, [esp + 0x18]
mov dword [ebp + 4], 0
call fcn.00565750
lea ecx, [esp + 0x104]
push ecx
mov byte [esp + 0x248], 0
call fcn.00489b90
mov eax, ebp
jmp 0x5153d3
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x9c4]
mov eax, dword [eax]
mov ebp, dword [ecx + 0x9c4]
xor ebx, ebx
add ecx, 0x9c0
mov esi, ecx
mov edi, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
test esi, esi
je 0x514d6e
cmp esi, ecx
je 0x514d73
call fcn.005b8b18
cmp edi, ebp
je 0x514db1
test esi, esi
jne 0x514d80
call fcn.005b8b18
cmp edi, dword [esi + 4]
jne 0x514d8a
call fcn.005b8b18
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x4e0]
cmp eax, ebx
jl 0x514d9a
lea ebx, [eax + 1]
lea esi, [esp + 0x30]
call fcn.004f19c0
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
jmp 0x514d66
push 0x558
call fcn.0059b847
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov ebp, dword [esp + 0x14]
mov byte [esp + 0x244], 5
je 0x514dee
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push ebp
lea ecx, [ebp + 0xa30]
push eax
lea edx, [esp + 0x114]
call fcn.004d4530
jmp 0x514df0
xor eax, eax
mov ecx, eax
lea edi, [esp + 0x18]
mov byte [esp + 0x244], 2
call fcn.0051b6d0
mov esi, dword [esp + 0x18]
mov edi, esi
call fcn.004d5fb0
mov eax, dword [ebp + 0x11bc]
mov edi, dword [eax]
lea ebx, [ebp + 0x11b8]
mov edx, eax
mov dword [esp + 0x40], edx
cmp ebx, ebx
je 0x514e2b
call fcn.005b8b18
cmp edi, dword [esp + 0x40]
je 0x514ee1
cmp edi, dword [ebx + 4]
jne 0x514e3f
call fcn.005b8b18
mov eax, dword [esp + 0x1a4]
push eax
push esi
lea edx, [esp + 0x30]
lea ecx, [edi + 8]
push edx
call fcn.004ef370
mov byte [esp + 0x244], 6
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x514e92
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x38], esp
je 0x514e8b
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov ecx, esi
call fcn.004d76d0
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x514ecc
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x514ecc
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x514ecc
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp edi, dword [ebx + 4]
jne 0x514ed6
call fcn.005b8b18
mov edi, dword [edi]
mov esi, dword [esp + 0x18]
jmp 0x514e22
mov eax, dword [ebp + 0x11c8]
mov edi, dword [eax]
lea ebx, [ebp + 0x11c4]
mov ebp, eax
cmp ebx, ebx
je 0x514efa
call fcn.005b8b18
cmp edi, ebp
je 0x514fb0
cmp edi, dword [ebx + 4]
jne 0x514f0c
call fcn.005b8b18
mov edx, dword [esp + 0x1a4]
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
push esi
lea edx, [esp + 0x30]
push edx
call eax
mov byte [esp + 0x244], 7
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x514f61
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x34]
test eax, eax
mov dword [esp + 0x38], esp
je 0x514f5a
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov ecx, esi
call fcn.004d76d0
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x514f9b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x514f9b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x514f9b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp edi, dword [ebx + 4]
jne 0x514fa5
call fcn.005b8b18
mov edi, dword [edi]
mov esi, dword [esp + 0x18]
jmp 0x514ef1
mov edi, dword [esp + 0x1c]
sub esp, 8
test edi, edi
mov eax, esp
mov dword [eax], esi
mov dword [esp + 0x38], esp
mov dword [eax + 4], edi
je 0x514fd2
lea eax, [edi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
sub esp, 0x14
mov eax, esp
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0xc], edx
lea esi, [esp + 0x70]
mov dword [eax + 0x10], ecx
call fcn.004f3fa0
add esp, 0x1c
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xdc], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xe0], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0xe4], edx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xe8], ecx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
mov dword [esp + 0xec], edx
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], eax
je 0x515058
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov byte [esp + 0x250], 9
call fcn.004ee690
mov byte [esp + 0x244], 8
mov esi, dword [esp + 0xf4]
test esi, esi
je 0x5150b4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5150b4
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5150b4
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [esp + 0x244], 2
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x5150ee
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5150ee
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5150ee
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x1f8], 0
mov ebp, 0xf
jne 0x515114
cmp dword [esp + 0x1dc], 0
je 0x51520c
lea edx, [esp + 0x1c8]
jmp 0x51511b
lea edx, [esp + 0x1e4]
mov ecx, dword [esp + 0x18]
sub esp, 8
test edi, edi
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x38], esp
mov dword [eax + 4], edi
je 0x51513d
lea eax, [edi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x5c], esp
push 0xffffffffffffffff
mov byte [esp + 0x26c], 0xa
push 0
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], 0
push edx
mov byte [ecx + 4], 0
call fcn.0040b390
lea esi, [esp + 0x100]
mov byte [esp + 0x268], 2
call fcn.004f3e70
add esp, 0x24
mov esi, eax
push 0xffffffffffffffff
push 0
mov bl, 0xb
mov byte [esp + 0x24c], bl
push esi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], 0
mov byte [esp + 0x64], 0
call fcn.0040b390
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x70], edx
mov esi, dword [esi + 0x20]
test esi, esi
mov dword [esp + 0x74], esi
je 0x5151c5
add esi, 4
mov eax, 1
lock xadd dword [esi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x40]
push edx
add eax, 0x9cc
push eax
mov byte [esp + 0x250], 0xc
call fcn.004ee810
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0x248], bl
call fcn.004d5e70
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0x248], 2
call fcn.004d5e70
mov esi, dword [esp + 0x14]
add esi, 0x380
lea ebp, [esi + 0x14]
push ebp
call dword [0x5fd18c]
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x30]
push ebp
jb 0x515234
call dword [0x5fd188]
jmp 0x51531a
mov ebx, dword [esi + 0x2c]
shr ebx, 6
and bl, 1
call dword [0x5fd188]
test bl, bl
je 0x51531a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
call fcn.004e7a70
mov ecx, dword [0x65ae48]
mov edx, dword [0x65ae4c]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xdc], 0x617850
mov ecx, dword [eax]
mov dword [esp + 0xec], ecx
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp + 0xf0], eax
je 0x5152a1
add eax, 8
mov edx, 1
lock xadd dword [eax], edx
mov dword [esp + 0xdc], 0x61a094
lea eax, [esp + 0xdc]
push eax
push esi
mov byte [esp + 0x24c], 0xe
call fcn.004c4090
mov byte [esp + 0x244], 0xf
mov eax, dword [esp + 0xf0]
test eax, eax
je 0x5152ea
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x5152ea
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov byte [esp + 0x244], 2
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0xdc], 0x617830
je 0x51531a
mov ecx, eax
add eax, 8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x51531a
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [esp + 0x21c]
and eax, 0x40
xor ecx, ecx
or eax, ecx
je 0x515338
mov eax, dword [esp + 0x14]
mov dword [eax + 0xbc8], 2
test edi, edi
je 0x515348
lea ecx, [edi + 8]
mov edx, 1
lock xadd dword [ecx], edx
test edi, edi
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], edi
je 0x515365
lea ecx, [edi + 8]
mov edx, 1
lock xadd dword [ecx], edx
test edi, edi
mov dword [esp + 0x24], 1
je 0x515386
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x515386
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test edi, edi
mov byte [esp + 0x244], 1
je 0x5153bc
lea ecx, [edi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5153bc
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5153bc
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
lea ecx, [esp + 0x104]
push ecx
mov byte [esp + 0x248], 0
call fcn.00489b90
mov eax, esi
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005b88a9
add esp, 0x234
ret 0xc