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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x544fb8
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x780], ebp
je 0x491845
mov edi, dword [esp + 0xec]
mov eax, dword [0x59a1b8]
mov ecx, dword [0x59a1e0]
push ebp
mov ebx, dword [eax + edi*4]
lea eax, [esp + 0x3c]
mov edx, dword [ecx + edi*4]
push eax
push ebx
mov ecx, 0x599de0
mov dword [esp + 0x2c], edx
call fcn.004d2e80
test eax, eax
je 0x491845
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x4c]
push ebp
push ecx
mov eax, dword [edx + 8]
mov ecx, 0x599dfc
push eax
call fcn.004d2e80
test eax, eax
je 0x491845
push ebx
mov ecx, 0x599b30
call fcn.004606a0
cmp eax, ebp
je 0x491845
cmp dword [esp + 0x20], ebp
je 0x491845
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x7f0], ecx
lea ecx, [esi + 0x784]
mov dword [esi + 0x77c], 1
mov dword [esi + 0x7f8], edx
mov dword [esi + 0x7f4], eax
call fcn.004735a0
lea ecx, [esi + 0x798]
call fcn.004735a0
lea ecx, [esi + 0x7ac]
call fcn.004735a0
lea ecx, [esi + 0x7c0]
call fcn.004735a0
lea ecx, [esi + 0x7d4]
call fcn.004735a0
mov dword [esi + 0x7e8], ebp
mov dword [esi + 0x770], ebp
mov eax, dword [esi + 0x350]
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x14e
push eax
call edi
mov ecx, dword [esi + 0x314]
push 0xffff0000
push ebp
push 0x1101
push ecx
call edi
lea ecx, [esp + 0xc8]
mov dword [esp + 0x5c], 0x27
mov dword [esp + 0x58], 0xffff0002
mov dword [esp + 0x2c], ebp
call fcn.004733a0
mov edx, dword [esi + 0x7f8]
mov dword [esi + 0x7ec], ebp
xor eax, eax
mov dword [esp + 0xe4], ebp
mov ecx, dword [edx + 0x44]
cmp ecx, ebp
lea ecx, [esp + 0xb0]
setne al
mov dword [esp + 0x44], eax
call fcn.004733a0
mov dword [esp + 0xc4], 0x599bf0
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], 0x54d958
mov edi, 1
mov byte [esp + 0xe4], 1
mov dword [esp + 0x1c], edi
jmp 0x491311
xor ebp, ebp
lea ecx, [edi - 1]
mov dword [esp + 0x24], ebp
cmp ecx, 3
ja case.default.0x491324
lea edx, [edi - 1]
jmp dword [edx*4 + 0x491864]
mov ebp, dword [esi + 0x7f0]
mov dword [esp + 0x6c], 0x58f540
add ebp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x4913bb
mov eax, dword [esi + 0x7f0]
mov dword [esp + 0x6c], 0x58f530
add eax, 0x34
mov dword [esp + 0x10], eax
jmp case.default.0x491324
cmp dword [esp + 0x44], ebp
je 0x491390
mov ecx, dword [esi + 0x7f8]
lea eax, [esp + 0xa8]
push ebp
push eax
call fcn.004ce960
lea ecx, [esp + 0xa8]
mov dword [esp + 0x6c], 0x58f528
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], 1
jmp case.default.0x491324
mov eax, dword [esi + 0x7f8]
mov dword [esp + 0x6c], 0x58f51c
add eax, 0xc
mov dword [esp + 0x10], eax
jmp case.default.0x491324
mov dword [esp + 0x10], 0x599dc0
mov dword [esp + 0x6c], 0x588e88
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 4]
xor ebx, ebx
cmp eax, ebx
je 0x4917a1
mov eax, 1
lea edx, [esp + 0x54]
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x314]
push edx
push ebx
push 0x1100
push eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x90], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x7ec]
mov dword [esp + 0x30], eax
cmp ecx, ebx
jne 0x49140c
mov dword [esi + 0x7ec], eax
cmp dword [esp + 0x24], ebx
je 0x491471
mov edx, dword [esp + 0x20]
mov eax, dword [0x599fdc]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push ebx
lea ecx, [esp + 0x18]
push 4
add edx, 8
push ecx
push edx
push eax
call edi
test eax, eax
je 0x49179d
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x49179d
mov edx, dword [0x599fdc]
push ebx
lea ecx, [esp + 0x18]
push 4
push ecx
push eax
push edx
call edi
test eax, eax
je 0x49179d
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x49179d
add eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
jmp 0x49147b
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
push 0
mov eax, ebx
inc ebx
push eax
mov ecx, ebp
mov dword [esp + 0x3c], ebx
call fcn.004d2670
mov edi, eax
test edi, edi
mov dword [esp + 0x50], edi
je 0x491784
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 0x14]
push eax
mov dword [esp + 0x40], eax
call fcn.004741f0
add esp, 4
test eax, eax
jne 0x49147b
dec ebx
mov ecx, ebp
push ebx
call fcn.004d26c0
mov ebx, eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x28], ebx
je 0x49153b
mov ecx, dword [esp + 0x14]
push edi
lea eax, [edi + 6]
push ebx
push ecx
push eax
mov dword [esp + 0x58], eax
call fcn.004c9c50
add esp, 4
mov ecx, esi
push eax
call fcn.00491000
test eax, eax
je 0x49147b
mov edi, dword [edi]
mov ebp, 0x80000301
test edi, edi
je 0x4914ff
mov ebp, edi
mov edi, dword [esp + 0x48]
push edi
call fcn.004c9c50
add esp, 4
test eax, eax
je 0x491529
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc8]
push edx
push eax
mov ecx, 0x599b30
call fcn.00467f80
mov edi, eax
push edi
push ebp
mov ecx, 0x599bf0
call fcn.00410970
add dword [esp + 0x14], eax
jmp 0x49155a
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ebp
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00490e50
test eax, eax
je 0x49147b
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00490df0
mov ebp, eax
push ebp
call fcn.004c9c50
mov edx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x2c]
add esp, 4
mov dword [esp + 0x80], eax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
neg eax
sbb eax, eax
lea edx, [esp + 0x54]
and eax, 3
push edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x314]
push 0
push 0x1100
push eax
mov dword [esp + 0x7c], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x599a60]
mov dword [esp + 0x54], eax
cmp ebx, ecx
jne 0x4915ca
mov dword [esp + 0x2c], eax
cmp edi, 1
jne 0x49161b
push ebp
call fcn.004c9c10
add esp, 4
xor ecx, ecx
test eax, eax
setg cl
mov edi, ecx
cmp edi, 1
jne 0x491477
mov ecx, dword [esi + 0x314]
lea eax, [esp + 0x54]
push eax
push 0
push 0x1100
push ecx
mov dword [esp + 0x90], 0
mov dword [esp + 0x7c], 0x588658
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x491477
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x491633
mov dword [esp + 0x18], 0x80000301
jmp 0x491646
push 1
lea eax, [esp + 0x1c]
push 1
push eax
mov ecx, 0x599bf0
call fcn.00448a50
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004ded00
add esp, 4
cmp eax, 2
jne 0x491745
mov edx, dword [esp + 0x18]
push edx
call fcn.004ddec0
add esp, 4
cmp eax, 1
je 0x4915ea
mov eax, dword [esp + 0x18]
push eax
call fcn.004ddec0
add esp, 4
cmp eax, 3
jne 0x491477
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
mov ecx, 0x599dfc
call fcn.004d2e80
test eax, eax
je 0x491477
lea ecx, [esp + 0x90]
call fcn.004733a0
xor ebx, ebx
mov dword [esp + 0xa4], 0x599bf0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], 0x54d958
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x88]
push ebx
push eax
mov byte [esp + 0xec], 2
call fcn.004ce960
mov eax, dword [esp + 0x8c]
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x88], 0x54d7d4
setg cl
mov edi, ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 3
mov dword [esp + 0x8c], ebx
call fcn.004735a0
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 1
mov dword [esp + 0x90], 0x54d7d0
call fcn.004735a0
jmp 0x4915e1
cmp eax, 3
jne 0x491477
mov edx, dword [esp + 0x18]
push 0
push edx
mov ecx, 0x599bf0
call fcn.00450cd0
test eax, eax
je 0x491477
mov ecx, dword [eax + 0x30]
test ecx, ecx
jle 0x491477
test dword [eax + 0x14], 0x800000
jne 0x491477
jmp 0x4915ea
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0x314]
push edx
push 2
push 0x1102
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0x1c]
inc edi
cmp edi, 4
mov dword [esp + 0x1c], edi
jle 0x49130f
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, edi
jne 0x4917bf
mov eax, dword [esi + 0x7ec]
mov ecx, dword [esi + 0x314]
push eax
push 9
push 0x110b
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x77c], edi
mov dword [esp + 0xa8], 0x54d7d4
lea ecx, [esp + 0xb0]
mov byte [esp + 0xe4], 4
mov dword [esp + 0xac], edi
call fcn.004735a0
mov esi, 0x54d7d0
lea ecx, [esp + 0xb0]
mov byte [esp + 0xe4], 0
mov dword [esp + 0xb0], esi
call fcn.004735a0
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe4], 0xffffffff
mov dword [esp + 0xc8], esi
call fcn.004735a0
mov eax, 1
jmp 0x491847
xor eax, eax
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret 4