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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x544f08
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 0x491805
mov edi, dword [esp + 0xec]
mov eax, dword [0x59a168]
mov ecx, dword [0x59a190]
push ebp
mov ebx, dword [eax + edi*4]
lea eax, [esp + 0x3c]
mov edx, dword [ecx + edi*4]
push eax
push ebx
mov ecx, 0x599d90
mov dword [esp + 0x2c], edx
call fcn.004d2df0
test eax, eax
je 0x491805
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x4c]
push ebp
push ecx
mov eax, dword [edx + 8]
mov ecx, 0x599dac
push eax
call fcn.004d2df0
test eax, eax
je 0x491805
push ebx
mov ecx, 0x599ae0
call fcn.004604a0
cmp eax, ebp
je 0x491805
cmp dword [esp + 0x20], ebp
je 0x491805
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.00473690
lea ecx, [esi + 0x798]
call fcn.00473690
lea ecx, [esi + 0x7ac]
call fcn.00473690
lea ecx, [esi + 0x7c0]
call fcn.00473690
lea ecx, [esi + 0x7d4]
call fcn.00473690
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.00473490
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.00473490
mov dword [esp + 0xc4], 0x599ba0
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], 0x54d958
mov edi, 1
mov byte [esp + 0xe4], 1
mov dword [esp + 0x1c], edi
jmp 0x4912d1
xor ebp, ebp
lea ecx, [edi - 1]
mov dword [esp + 0x24], ebp
cmp ecx, 3
ja case.default.0x4912e4
lea edx, [edi - 1]
jmp dword [edx*4 + 0x491824]
mov ebp, dword [esi + 0x7f0]
mov dword [esp + 0x6c], 0x58f4f0
add ebp, 0x14
mov dword [esp + 0x10], ebp
jmp 0x49137b
mov eax, dword [esi + 0x7f0]
mov dword [esp + 0x6c], 0x58f4e0
add eax, 0x34
mov dword [esp + 0x10], eax
jmp case.default.0x4912e4
cmp dword [esp + 0x44], ebp
je 0x491350
mov ecx, dword [esi + 0x7f8]
lea eax, [esp + 0xa8]
push ebp
push eax
call fcn.004ce8d0
lea ecx, [esp + 0xa8]
mov dword [esp + 0x6c], 0x58f4d8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], 1
jmp case.default.0x4912e4
mov eax, dword [esi + 0x7f8]
mov dword [esp + 0x6c], 0x58f4cc
add eax, 0xc
mov dword [esp + 0x10], eax
jmp case.default.0x4912e4
mov dword [esp + 0x10], 0x599d70
mov dword [esp + 0x6c], 0x588e38
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 4]
xor ebx, ebx
cmp eax, ebx
je 0x491761
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 0x4913cc
mov dword [esi + 0x7ec], eax
cmp dword [esp + 0x24], ebx
je 0x491431
mov edx, dword [esp + 0x20]
mov eax, dword [0x599f8c]
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 0x49175d
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x49175d
mov edx, dword [0x599f8c]
push ebx
lea ecx, [esp + 0x18]
push 4
push ecx
push eax
push edx
call edi
test eax, eax
je 0x49175d
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x49175d
add eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
jmp 0x49143b
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.004d25e0
mov edi, eax
test edi, edi
mov dword [esp + 0x50], edi
je 0x491744
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 0x14]
push eax
mov dword [esp + 0x40], eax
call fcn.004742e0
add esp, 4
test eax, eax
jne 0x49143b
dec ebx
mov ecx, ebp
push ebx
call fcn.004d2630
mov ebx, eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x28], ebx
je 0x4914fb
mov ecx, dword [esp + 0x14]
push edi
lea eax, [edi + 6]
push ebx
push ecx
push eax
mov dword [esp + 0x58], eax
call fcn.004c9bc0
add esp, 4
mov ecx, esi
push eax
call fcn.00490fc0
test eax, eax
je 0x49143b
mov edi, dword [edi]
mov ebp, 0x80000301
test edi, edi
je 0x4914bf
mov ebp, edi
mov edi, dword [esp + 0x48]
push edi
call fcn.004c9bc0
add esp, 4
test eax, eax
je 0x4914e9
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc8]
push edx
push eax
mov ecx, 0x599ae0
call fcn.00467d90
mov edi, eax
push edi
push ebp
mov ecx, 0x599ba0
call fcn.00410780
add dword [esp + 0x14], eax
jmp 0x49151a
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.00490e10
test eax, eax
je 0x49143b
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00490db0
mov ebp, eax
push ebp
call fcn.004c9bc0
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 [0x599a10]
mov dword [esp + 0x54], eax
cmp ebx, ecx
jne 0x49158a
mov dword [esp + 0x2c], eax
cmp edi, 1
jne 0x4915db
push ebp
call fcn.004c9b80
add esp, 4
xor ecx, ecx
test eax, eax
setg cl
mov edi, ecx
cmp edi, 1
jne 0x491437
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], 0x588608
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x491437
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x4915f3
mov dword [esp + 0x18], 0x80000301
jmp 0x491606
push 1
lea eax, [esp + 0x1c]
push 1
push eax
mov ecx, 0x599ba0
call fcn.00448870
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004dec70
add esp, 4
cmp eax, 2
jne 0x491705
mov edx, dword [esp + 0x18]
push edx
call fcn.004dde30
add esp, 4
cmp eax, 1
je 0x4915aa
mov eax, dword [esp + 0x18]
push eax
call fcn.004dde30
add esp, 4
cmp eax, 3
jne 0x491437
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
mov ecx, 0x599dac
call fcn.004d2df0
test eax, eax
je 0x491437
lea ecx, [esp + 0x90]
call fcn.00473490
xor ebx, ebx
mov dword [esp + 0xa4], 0x599ba0
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.004ce8d0
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.00473690
lea ecx, [esp + 0x90]
mov byte [esp + 0xe4], 1
mov dword [esp + 0x90], 0x54d7d0
call fcn.00473690
jmp 0x4915a1
cmp eax, 3
jne 0x491437
mov edx, dword [esp + 0x18]
push 0
push edx
mov ecx, 0x599ba0
call fcn.00450af0
test eax, eax
je 0x491437
mov ecx, dword [eax + 0x30]
test ecx, ecx
jle 0x491437
test dword [eax + 0x14], 0x800000
jne 0x491437
jmp 0x4915aa
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 0x4912cf
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, edi
jne 0x49177f
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.00473690
mov esi, 0x54d7d0
lea ecx, [esp + 0xb0]
mov byte [esp + 0xe4], 0
mov dword [esp + 0xb0], esi
call fcn.00473690
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe4], 0xffffffff
mov dword [esp + 0xc8], esi
call fcn.00473690
mov eax, 1
jmp 0x491807
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