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

Disassembly:
push 0xffffffffffffffff
push 0x5aac58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
cmp byte [esi + 0xec], 0
jne 0x54137b
mov eax, dword [esi + 0x58]
lea ecx, [esi + 0xf0]
push ecx
mov byte [esi + 0xec], 1
mov dword [esi + 0xf8], eax
mov dword [esi + 0xf4], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
cmp dword [esi + 0x78], 0
je 0x5418d8
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebp, dword [esi + 0x7c]
test ebp, ebp
je 0x54158e
mov eax, dword [ebp]
mov edx, dword [eax + 0xc8]
mov ecx, ebp
call edx
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
test eax, eax
je 0x54149a
mov esi, dword [esp + 0x3c]
push ebx
push edi
push esi
push 0x200
push ebp
push ebp
call fcn.00555960
mov eax, dword [ebp]
mov edx, dword [eax + 0x9c]
push ebx
push edi
push esi
push 0x200
push ebp
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x78]
mov ecx, ebp
call edx
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x5413fd
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov dword [esp + 0x30], 0
test esi, esi
je 0x541482
lea esp, [esp]
mov eax, dword [esp + 0x3c]
mov edx, dword [esi]
mov edx, dword [edx + 0x9c]
push ebx
push edi
push eax
push 0x200
push ebp
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
mov ecx, esi
call edx
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x541444
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x30], 1
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
xor esi, esi
mov dword [esp + 0x44], esi
test edi, edi
je 0x541469
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov esi, edi
mov dword [esp + 0x44], esi
mov byte [esp + 0x30], 0
test edi, edi
je 0x54147a
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov edi, dword [esp + 0x40]
test esi, esi
jne 0x541410
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x541496
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov esi, dword [esp + 0x38]
cmp dword [esi + 0x88], 0
je 0x5414ef
mov esi, dword [esi + 0x7c]
test esi, esi
je 0x5418d8
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test eax, eax
je 0x5418d8
mov ebp, dword [esp + 0x3c]
push ebx
push edi
push ebp
push 0x5fa
push esi
push esi
call fcn.00555960
mov edx, dword [esi]
mov eax, dword [edx + 0x9c]
push ebx
push edi
push ebp
push 0x5fa
push esi
mov ecx, esi
call eax
jmp 0x5418d8
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x5418d8
mov edx, dword [ecx]
mov eax, dword [edx + 0xb8]
call eax
test eax, eax
je 0x5418d8
mov eax, dword [esp + 0x20]
sub eax, dword [esi + 0xac]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x541538
mov eax, dword [esp + 0x24]
sub eax, dword [esi + 0xb0]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jle 0x5418d8
mov dword [esi + 0x88], 1
mov esi, dword [esi + 0x7c]
test esi, esi
je 0x5418d8
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test eax, eax
je 0x5418d8
mov ebp, dword [esp + 0x3c]
push ebx
push edi
push ebp
push 0x5f9
push esi
push esi
call fcn.00555960
mov edx, dword [esi]
mov eax, dword [edx + 0x9c]
push ebx
push edi
push ebp
push 0x5f9
push esi
mov ecx, esi
call eax
jmp 0x5418d8
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 6
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
mov eax, esi
call fcn.00540f60
mov ebp, dword [esp + 0x38]
test ebp, ebp
je 0x5418c3
mov ebx, dword [esi + 0x80]
sub esi, 0xffffff80
mov dword [esp + 0x18], esi
cmp ebp, ebx
je 0x5417cc
test ebx, ebx
je 0x5416d7
mov edx, dword [ebx]
mov eax, dword [edx + 0xc8]
mov ecx, ebx
call eax
test eax, eax
je 0x5416d7
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edi
push esi
push ecx
push 0x5f8
push ebx
push ebx
call fcn.00555960
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x9c]
push edi
push esi
push eax
push 0x5f8
push ebx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x78]
mov ecx, ebx
call edx
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x541640
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov byte [esp + 0x30], 7
test esi, esi
je 0x5416c6
jmp 0x541654
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi]
mov edx, dword [edx + 0x9c]
push edi
push eax
push ecx
push 0x5f8
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
mov ecx, esi
call edx
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x54168c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x30], 8
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
xor esi, esi
mov dword [esp + 0x14], esi
test edi, edi
je 0x5416b1
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov esi, edi
mov dword [esp + 0x14], esi
mov byte [esp + 0x30], 7
test edi, edi
je 0x5416c2
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
test esi, esi
jne 0x541650
mov byte [esp + 0x30], 6
test esi, esi
je 0x5416d7
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x38]
call fcn.0041df90
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
test eax, eax
je 0x5418c3
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
push ebx
push edi
push esi
push 0x5f7
push ebp
push ebp
call fcn.00555960
mov edx, dword [ebp]
mov eax, dword [edx + 0x9c]
push ebx
push edi
push esi
push 0x5f7
push ebp
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x78]
mov ecx, ebp
call eax
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x541746
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov byte [esp + 0x30], 9
test esi, esi
je 0x5418b4
jmp 0x541759
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
push ebx
push edi
push ecx
push 0x5f7
push ebp
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
mov ecx, esi
call edx
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x54178d
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x30], 0xa
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
xor esi, esi
mov dword [esp + 0x44], esi
test edi, edi
je 0x5417b2
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov esi, edi
mov dword [esp + 0x44], esi
mov byte [esp + 0x30], 9
test edi, edi
je 0x5417c3
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
test esi, esi
jne 0x541755
jmp 0x5418b2
mov edx, dword [ebp]
mov eax, dword [edx + 0xc8]
mov ecx, ebp
call eax
test eax, eax
je 0x5418c3
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
push ebx
push edi
push esi
push 0x200
push ebp
push ebp
call fcn.00555960
mov edx, dword [ebp]
mov eax, dword [edx + 0x9c]
push ebx
push edi
push esi
push 0x200
push ebp
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x78]
mov ecx, ebp
call eax
mov esi, eax
mov dword [esp + 0x44], esi
test esi, esi
je 0x54182e
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov byte [esp + 0x30], 0xb
test esi, esi
je 0x5418b4
jmp 0x541844
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
push ebx
push edi
push ecx
push 0x200
push ebp
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
mov ecx, esi
call edx
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x541878
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov byte [esp + 0x30], 0xc
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
xor esi, esi
mov dword [esp + 0x44], esi
test edi, edi
je 0x54189d
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov esi, edi
mov dword [esp + 0x44], esi
mov byte [esp + 0x30], 0xb
test edi, edi
je 0x5418ae
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
test esi, esi
jne 0x541840
test esi, esi
mov byte [esp + 0x30], 6
je 0x5418c3
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
mov dword [esp + 0x30], 0xffffffff
test ebp, ebp
je 0x5418d8
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10