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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4e2040]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov ecx, eax
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x34], edx
mov edx, esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x14], eax
call fcn.00493345
mov ecx, dword [esp + 0x34]
movsx edx, word [esi + 0x22]
and dword [esp + 0x2c], 0
push 2
mov dword [esp + 0x54], eax
pop eax
add edx, eax
mov eax, dword [ecx + 0x34]
mov ecx, dword [ebx + 0x28]
push 0
push edx
push ecx
mov dword [esp + 0x1c], eax
lea eax, [ecx + 1]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov ecx, edi
push 0x76
pop edx
mov dword [ebx + 0x28], eax
call fcn.004591cc
mov ecx, dword [ebx + 0x2c]
add esp, 0xc
mov dword [esp + 0x20], eax
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x44], eax
cmp dword [ecx], 1
jle 0x4921df
xor ecx, ecx
test byte [esi + 0x1c], 0x80
mov dword [esp + 0x10], ecx
jne 0x4920ef
mov eax, dword [esp + 0x30]
push ecx
push ecx
test eax, eax
je 0x4920e1
mov edx, eax
mov ecx, dword [esp + 0x1c]
call fcn.0046a101
jmp 0x4920eb
push 0x4b
pop edx
mov ecx, ebx
call fcn.00469b63
pop ecx
pop ecx
jmp 0x49212b
mov ecx, esi
call fcn.00474bb9
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 4]
movsx edx, word [ecx]
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
js 0x492124
mov eax, dword [esp + 0x3c]
imul ecx, ecx, 0x14
mov edx, dword [ecx + eax + 8]
test edx, edx
je 0x492120
push 0
push 0
jmp 0x4920d6
xor eax, eax
jmp 0x49212b
mov ecx, ebx
call fcn.004907ce
mov ecx, dword [ebx]
mov edx, eax
call fcn.0046a92b
mov esi, eax
xor ecx, ecx
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x20], ecx
cmp dx, word [eax + 0x22]
jge 0x4921a4
mov edi, eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax + ecx*4]
test eax, eax
js 0x492179
mov ecx, dword [esp + 0x3c]
imul eax, eax, 0x14
mov edx, dword [eax + ecx + 8]
test edx, edx
je 0x492175
mov ecx, dword [esp + 0x14]
push 0
push 0
call fcn.0046a101
pop ecx
pop ecx
jmp 0x492182
xor eax, eax
jmp 0x492182
mov edx, ecx
mov ecx, ebx
call fcn.004907ce
push eax
mov edx, esi
mov ecx, ebx
call fcn.0046a9e0
pop ecx
mov ecx, dword [esp + 0x20]
mov esi, eax
movsx eax, word [edi + 0x22]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x49214a
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
push ecx
push ecx
push dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
push ecx
push esi
push dword [esp + 0x24]
mov ecx, ebx
call fcn.004907ec
add esp, 0x18
test esi, esi
je 0x4921d1
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.0046ac05
and dword [esp + 0x30], 0
mov esi, dword [esp + 0x28]
jmp 0x4923a8
xor esi, esi
add eax, 2
push esi
push 4
push esi
push esi
push esi
push dword [esp + 0x54]
mov edx, ecx
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov dword [ebx + 0x2c], eax
call fcn.0049e7d9
add esp, 0x18
mov dword [esp + 0x2c], eax
test eax, eax
je 0x492492
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp cx, word [eax + 0x22]
jge 0x492272
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + esi*4]
mov eax, dword [esp + 0x1c]
add eax, 2
add eax, esi
push eax
test ecx, ecx
js 0x492243
mov eax, dword [esp + 0x40]
imul edx, ecx, 0x14
mov ecx, ebx
mov edx, dword [edx + eax + 8]
call fcn.0046dbf2
pop ecx
jmp 0x492261
push esi
push dword [esp + 0x18]
mov edx, 0xaf
mov ecx, edi
call fcn.004591cc
add esp, 0xc
xor edx, edx
inc edx
mov ecx, edi
call fcn.0045974e
mov eax, dword [esp + 0x18]
inc esi
movsx eax, word [eax + 0x22]
cmp esi, eax
jl 0x492219
mov eax, dword [esp + 0x18]
test byte [eax + 0x1c], 0x80
mov edx, dword [esp + 0x1c]
lea esi, [edx + 1]
jne 0x4922c3
push 0
push edx
push dword [esp + 0x18]
mov edx, 0x87
mov ecx, edi
call fcn.004591cc
mov eax, dword [esp + 0x3c]
add esp, 0xc
test eax, eax
je 0x4922aa
push esi
mov edx, eax
mov ecx, ebx
call fcn.0046dbf2
pop ecx
jmp 0x492302
push 0
push esi
mov esi, dword [esp + 0x18]
mov edx, 0x87
push esi
mov ecx, edi
call fcn.004591cc
add esp, 0xc
jmp 0x492306
mov ecx, eax
call fcn.00474bb9
push edx
mov edx, 0xaf
mov ecx, edi
mov eax, dword [eax + 4]
movsx esi, word [eax]
push esi
push dword [esp + 0x18]
call fcn.004591cc
mov ecx, dword [esp + 0x28]
add esp, 0xc
push 0
lea eax, [ecx + 1]
push eax
lea eax, [ecx + 2]
mov ecx, edi
add eax, esi
push eax
push 0x51
pop edx
call fcn.004591cc
add esp, 0xc
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add eax, 0x14
push 8
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004b1c10
mov eax, dword [esp + 0x38]
add esp, 0xc
mov ecx, edi
movzx eax, byte [eax + 0x2e]
mov dword [esp + 0x30], eax
test eax, eax
je 0x49234f
mov edx, dword [esp + 0x20]
call fcn.004598c7
push 0
push 0
push esi
push 0x7a
pop edx
mov ecx, edi
call fcn.004591cc
add esp, 0xc
jmp 0x4923fd
cmp dword [ebx + 0x78], 0
mov eax, ebx
cmovne eax, dword [ebx + 0x78]
mov byte [eax + 0x14], 1
mov eax, dword [esp + 0x44]
inc eax
push eax
push dword [esp + 0x28]
push dword [esp + 0x24]
push 0x61
pop edx
call fcn.004591cc
mov esi, dword [esp + 0x34]
add esp, 0xc
mov ecx, edi
push 0
push dword [esp + 0x18]
push esi
push 0x7f
pop edx
call fcn.004591cc
mov eax, dword [esp + 0x50]
add esp, 0xc
inc eax
mov edx, 0x80
mov ecx, edi
push dword [esp + 0x14]
push eax
push esi
call fcn.004591cc
add esp, 0xc
mov eax, dword [esp + 0x34]
cmp dword [eax], 1
jne 0x4923ba
mov ecx, dword [esp + 0x2c]
call fcn.0049f234
push 0
push 0
push esi
push 0x24
pop edx
mov ecx, edi
call fcn.004591cc
xor esi, esi
mov dword [esp + 0x2c], eax
add esp, 0xc
cmp dword [esp + 0x24], esi
jle 0x4923fd
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ecx, edi
add eax, esi
push eax
push esi
push ebx
push 0x5e
pop edx
call fcn.004591cc
add esp, 0xc
inc esi
cmp esi, dword [esp + 0x24]
jl 0x4923dc
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0049413d
push 0xfffffffffffffff5
push dword [esp + 0x54]
mov ecx, edi
push dword [esp + 0x24]
push dword [esp + 0x30]
push 0
push 7
pop edx
call fcn.004592f6
mov eax, dword [ebp + 0x1c]
add esp, 0x14
movzx edx, ax
cmp eax, 0xb
mov ecx, edi
push 2
pop eax
cmove edx, eax
call fcn.0045974e
mov eax, dword [ebx + 0x78]
test eax, eax
cmovne ebx, eax
cmp dword [esp + 0x30], 0
mov byte [ebx + 0x15], 1
jne 0x492489
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
push 0
lea eax, [esi + 1]
push eax
push ebx
push 0x27
pop edx
call fcn.004591cc
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.00459a36
mov esi, dword [edi + 0x6c]
push 0
push 0
push ebx
push 0x7a
pop edx
mov dword [eax + 8], esi
call fcn.004591cc
add esp, 0xc
jmp 0x492492
mov ecx, dword [esp + 0x2c]
call fcn.0049f234
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b0ce6
mov esp, ebp
pop ebp
ret