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

Disassembly:
sub esp, 0x4c
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [esp + 0x64]
mov ecx, dword [edx]
push esi
xor esi, esi
test dword [eax + 0x24], 0x400
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x492e14
movzx eax, byte [eax + 0x1d]
pop esi
add esp, 0x4c
ret
cmp word [esp + 0x64], si
je 0x492e28
test byte [ecx + 0x3c], 0x80
je 0x492e28
xor eax, eax
pop esi
add esp, 0x4c
ret
mov eax, dword [esp + 0x58]
movzx eax, word [eax]
cmp ax, 0x3f
ja 0x492e21
movzx ecx, ax
mov eax, 1
xor edx, edx
mov byte [esp + 7], 1
mov dword [esp + 0x10], ecx
call fcn.004f7390
add eax, 0xffffffff
push ebx
adc edx, 0xffffffff
push ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], esi
push edi
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esp + 0x58]
ja 0x493349
jb 0x492e90
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x54]
jae 0x493349
movzx eax, word [esp + 0x70]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jg 0x493349
test ecx, ecx
jle 0x492eb7
mov edx, dword [esp + 0x18]
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
or dword [esp + 0x44], esi
or dword [esp + 0x48], edx
cmp ecx, eax
jge 0x492ec7
mov eax, dword [esp + 0x68]
mov edx, dword [eax + 0x18]
mov edx, dword [edx + ecx*4]
jmp 0x492ecb
mov edx, dword [esp + 0x74]
movzx eax, byte [edx + 0x10]
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*8 + 0x34]
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
jle 0x493012
mov dword [esp + 0x20], ecx
lea esp, [esp]
mov eax, 1
xor edx, edx
call fcn.004f7390
mov ebx, edx
mov ebp, eax
and eax, dword [esp + 0x3c]
mov ecx, ebx
and ecx, dword [esp + 0x40]
or eax, ecx
jne 0x492ff4
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edx]
push ecx
call fcn.00477e70
mov edi, eax
add esp, 4
cmp byte [edi], 0x9a
jne 0x492ff4
mov edx, dword [esp + 0x2c]
cmp dword [edi + 0x1c], edx
jne 0x492ff4
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
movsx edx, word [edi + 0x20]
not eax
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x68]
push edx
add eax, 0x148
push eax
xor edx, edx
mov eax, 0x82
call fcn.0048ddb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492ff4
test byte [esi + 0x12], 2
je 0x492fec
cmp word [edi + 0x20], 0
jl 0x492fec
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + edx]
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
push ecx
push eax
call fcn.00477eb0
add esp, 8
test eax, eax
jne 0x492fbd
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
mov edi, dword [eax]
mov edx, dword [esi]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push edx
push ecx
call fcn.00477eb0
add esp, 8
test eax, eax
jne 0x492fdc
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov eax, dword [eax]
push eax
push edi
call fcn.0045afd0
add esp, 8
test eax, eax
jne 0x492ff4
or dword [esp + 0x3c], ebp
or dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x24]
add dword [esp + 0x20], 0x18
add ecx, 1
cmp ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
jl 0x492f00
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x49329f
test eax, 0x100
je 0x493036
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], esi
lea eax, [esi + 1]
jmp 0x49306a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
mov dword [esp + 0x20], ecx
je 0x49324b
test byte [ecx + 0x38], 4
jne 0x49324b
movzx edx, word [ecx + 0x32]
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x34]
mov dword [esp + 0x34], edx
setne byte [esp + 0x13]
mov esi, ecx
movzx eax, ax
xor edx, edx
test eax, eax
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], eax
jle 0x49329f
mov edi, edi
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 0x18]
cmp edx, ecx
jge 0x4930c3
cmp word [eax + 0x1a], 0
jne 0x4930c3
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + edx*4]
movzx eax, word [eax + 0x12]
test al, 0x82
je 0x4930c3
test al, al
jns 0x493281
mov byte [esp + 0x13], 0
jmp 0x493281
test esi, esi
je 0x4930e5
mov eax, dword [esi + 4]
movsx ebp, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov al, byte [edx + eax]
mov byte [esp + 0x14], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x24]
cmp ebp, eax
jne 0x4930ed
jmp 0x4930ea
mov byte [esp + 0x14], 0
or ebp, 0xffffffff
cmp byte [esp + 0x13], 0
je 0x493112
test ebp, ebp
jl 0x493112
cmp edx, ecx
jl 0x493112
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 4]
lea edx, [ebp + ebp*2]
cmp byte [eax + edx*8 + 0x14], 0
jne 0x493112
mov byte [esp + 0x13], 0
xor esi, esi
mov bl, 1
xor edi, edi
jmp 0x493120
cmp esi, dword [esp + 0x1c]
jge 0x4931d6
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.004f7390
and eax, dword [esp + 0x3c]
and edx, dword [esp + 0x40]
or eax, edx
jne 0x4931c8
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 8]
mov eax, dword [edi + edx]
push eax
call fcn.00477e70
add esp, 4
test dword [esp + 0x6c], 0x300
jne 0x493167
xor bl, bl
cmp byte [eax], 0x9a
jne 0x4931c8
mov ecx, dword [esp + 0x2c]
cmp dword [eax + 0x1c], ecx
jne 0x4931c8
movsx edx, word [eax + 0x20]
cmp edx, ebp
jne 0x4931c8
test ebp, ebp
jl 0x493205
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov edx, dword [edi + ecx]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax]
push edx
push ecx
call fcn.00477eb0
add esp, 8
test eax, eax
jne 0x4931aa
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [edx + ecx*4]
mov eax, dword [eax]
push edx
push eax
call fcn.0045afd0
add esp, 8
test eax, eax
je 0x493201
add esi, 1
add edi, 0x18
test bl, bl
jne 0x493120
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4931e7
movzx edx, word [esp + 0x34]
cmp eax, edx
jge 0x4931ec
mov byte [esp + 0x13], 0
cmp byte [esp + 0x17], 0
je 0x49329f
mov byte [esp + 0x13], 1
jmp 0x4932aa
test ebp, ebp
jge 0x49320a
mov byte [esp + 0x17], 1
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.004f7390
mov ecx, dword [esp + 0x60]
or dword [esp + 0x3c], eax
or dword [esp + 0x40], edx
test word [ecx + 0x22], 0x100
jne 0x493281
cmp byte [esp + 0x16], 0
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
lea edx, [esi + esi*2]
je 0x493255
mov al, byte [esp + 0x14]
xor al, byte [esp + 0x15]
cmp al, byte [ecx + edx*8 + 0xc]
je 0x493281
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x4c
ret
mov al, byte [ecx + edx*8 + 0xc]
xor al, byte [esp + 0x14]
mov byte [esp + 0x15], al
je 0x49327c
mov ecx, dword [esp + 0x28]
mov eax, 1
xor edx, edx
call fcn.004f7390
mov ecx, dword [esp + 0x78]
or dword [ecx], eax
or dword [ecx + 4], edx
mov byte [esp + 0x16], 1
mov edx, dword [esp + 0x24]
add edx, 1
cmp edx, dword [esp + 0x38]
mov dword [esp + 0x24], edx
jge 0x4931ec
mov esi, dword [esp + 0x20]
jmp 0x493090
cmp byte [esp + 0x13], 0
je 0x493339
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
or dword [esp + 0x4c], ecx
or dword [esp + 0x50], edx
xor ebp, ebp
cmp dword [esp + 0x1c], ebp
jle 0x493339
mov dword [esp + 0x2c], ebp
jmp 0x4932d0
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.004f7390
mov edi, edx
mov esi, eax
and eax, dword [esp + 0x3c]
mov ecx, edi
and ecx, dword [esp + 0x40]
or eax, ecx
jne 0x49332b
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ecx]
push eax
mov eax, dword [esp + 0x64]
add eax, 0x44
push eax
call fcn.00491080
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
not ecx
not ebx
and eax, ecx
and edx, ebx
add esp, 8
or eax, edx
jne 0x49332b
or dword [esp + 0x3c], esi
or dword [esp + 0x40], edi
add dword [esp + 0x2c], 0x18
add ebp, 1
cmp ebp, dword [esp + 0x1c]
jl 0x4932d0
add dword [esp + 0x28], 1
cmp byte [esp + 0x13], 0
jne 0x492e72
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x3c], edx
jne 0x49336a
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x40], eax
jne 0x49336a
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x4c
ret
mov al, byte [esp + 0x13]
neg al
pop edi
pop ebp
pop ebx
pop esi
sbb eax, eax
add esp, 0x4c
ret