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

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x60]
call edx
mov ebp, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov eax, ebp
sub eax, ebx
cmp eax, 1
jg 0x492a67
cmp byte [esp + 0xb0], 0
mov eax, ebx
jne 0x493412
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x98
ret 0xc
push edi
xor edi, edi
cmp dword [0x500660], edi
jne 0x492b4a
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
lea edx, [esp + 0x44]
push edi
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], 0x345ad82c
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0x70
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edi
call fcn.00496880
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x4c]
push ecx
mov dword [0x500660], eax
call fcn.00495bf0
add esp, 0x18
mov ecx, dword [esi + 0x140]
mov edx, dword [0x500660]
cmp dword [ecx + 0x34], edx
jne 0x492b7a
cmp byte [esp + 0xb4], 0
mov eax, ebx
jne 0x493411
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x98
ret 0xc
cmp byte [esp + 0xb4], 0
mov eax, ebp
jne 0x492b88
mov eax, ebx
cdq
push edx
push eax
push ecx
call fcn.004955f0
add esp, 0xc
or ebx, 0xffffffff
cmp byte [esp + 0xb4], 0
je 0x492bd2
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
cmp ecx, edi
jle 0x492bc9
mov edx, dword [eax + 0x30]
mov ebp, 0xd800
cmp word [edx + ecx*2 - 2], bp
mov ebp, dword [esp + 0xb0]
jae 0x492bc9
add dword [eax + 0x28], ebx
jmp 0x492bd2
push eax
call fcn.00495830
add esp, 4
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
call fcn.00499270
mov edx, dword [esi + 0x140]
push edx
mov dword [esp + 0x14], edi
call fcn.004956a0
mov edi, eax
add esp, 4
cmp edi, 0xffff
ja 0x492c4b
mov edx, dword [esi + 0x150]
lea eax, [edi - 0xd800]
mov ecx, 0x3ff
cmp ecx, eax
mov ecx, dword [edx + 0x20]
sbb eax, eax
and eax, 0xfffffec0
mov edx, edi
add eax, 0x140
sar edx, 5
add edx, eax
movzx eax, word [ecx + edx*2]
mov edx, edi
and edx, 0x1f
lea eax, [edx + eax*4]
movzx ebp, word [ecx + eax*2]
jmp 0x492cb0
cmp edi, 0x10ffff
ja 0x492ca6
mov ecx, edi
sar ecx, 0xa
sub ecx, 0x2840
movzx eax, cx
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx + 0x20]
mov ebp, eax
shr ebp, 5
movzx ebp, word [edx + ebp*2]
and eax, 0x1f
lea eax, [eax + ebp*4]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov eax, dword [ecx + 0x28]
push edx
call eax
mov ecx, dword [esi + 0x150]
add esp, 4
test eax, eax
jle 0x492ca0
mov ecx, dword [ecx + 0x20]
mov edx, edi
sar edx, 5
and edx, 0x1f
jmp 0x492c37
movzx ebp, word [ecx + 0x34]
jmp 0x492cb0
mov edx, dword [esi + 0x150]
movzx ebp, word [edx + 0x34]
test ebp, 0x4000
je 0x493002
cmp byte [esp + 0xb4], 0
je 0x492e10
lea ebx, [ebx]
mov eax, dword [esi + 0x140]
push eax
call fcn.00495790
mov ecx, dword [esi + 0x140]
push ecx
call fcn.004956a0
mov edi, eax
add esp, 8
cmp edi, 0xffff
ja 0x492d30
mov ecx, dword [esi + 0x150]
lea edx, [edi - 0xd800]
mov eax, 0x3ff
cmp eax, edx
sbb eax, eax
and eax, 0xfffffec0
mov edx, edi
add eax, 0x140
sar edx, 5
mov ecx, dword [ecx + 0x20]
add edx, eax
movzx eax, word [ecx + edx*2]
mov edx, edi
and edx, 0x1f
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
jmp 0x492d92
cmp edi, 0x10ffff
ja 0x492d88
mov ecx, edi
sar ecx, 0xa
sub ecx, 0x2840
movzx eax, cx
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx + 0x20]
mov ebp, eax
shr ebp, 5
movzx ebp, word [edx + ebp*2]
and eax, 0x1f
lea eax, [eax + ebp*4]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov eax, dword [ecx + 0x28]
push edx
call eax
mov ecx, dword [esi + 0x150]
add esp, 4
test eax, eax
jle 0x492d82
mov edx, edi
sar edx, 5
and edx, 0x1f
jmp 0x492d19
movzx eax, word [ecx + 0x34]
jmp 0x492d92
mov edx, dword [esi + 0x150]
movzx eax, word [edx + 0x34]
cmp edi, ebx
je 0x492da1
test eax, 0x4000
jne 0x492cd0
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
cmp ecx, dword [eax + 0x1c]
jg 0x492db6
mov eax, dword [eax + 0x20]
add eax, ecx
jmp 0x492dc2
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + 0x28]
push eax
call edx
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x492dfa
mov edx, dword [eax + 0x30]
mov edi, 0xd800
cmp word [edx + ecx*2 - 2], di
jae 0x492dfa
add dword [eax + 0x28], ebx
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x30]
movzx edi, word [edx + ecx*2]
jmp 0x492f5a
push eax
call fcn.00495830
mov edi, eax
jmp 0x492f57
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x492e41
mov edx, dword [eax + 0x30]
mov edi, 0xd800
cmp word [edx + ecx*2 - 2], di
jae 0x492e41
add dword [eax + 0x28], ebx
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x30]
movzx edi, word [edx + ecx*2]
jmp 0x492e4c
push eax
call fcn.00495830
add esp, 4
mov edi, eax
cmp edi, 0xffff
ja 0x492e8f
mov edx, dword [esi + 0x150]
lea eax, [edi - 0xd800]
mov ecx, 0x3ff
cmp ecx, eax
mov ecx, dword [edx + 0x20]
sbb eax, eax
and eax, 0xfffffec0
mov edx, edi
add eax, 0x140
sar edx, 5
add edx, eax
movzx eax, word [ecx + edx*2]
mov edx, edi
and edx, 0x1f
lea eax, [edx + eax*4]
movzx eax, word [ecx + eax*2]
jmp 0x492ef4
cmp edi, 0x10ffff
ja 0x492eea
mov ecx, edi
sar ecx, 0xa
sub ecx, 0x2840
movzx eax, cx
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx + 0x20]
mov ebp, eax
shr ebp, 5
movzx ebp, word [edx + ebp*2]
and eax, 0x1f
lea eax, [eax + ebp*4]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov eax, dword [ecx + 0x28]
push edx
call eax
mov ecx, dword [esi + 0x150]
add esp, 4
test eax, eax
jle 0x492ee4
mov ecx, dword [ecx + 0x20]
mov edx, edi
sar edx, 5
and edx, 0x1f
jmp 0x492e7b
movzx eax, word [ecx + 0x34]
jmp 0x492ef4
mov edx, dword [esi + 0x150]
movzx eax, word [edx + 0x34]
cmp edi, ebx
je 0x492f39
test eax, 0x4000
jne 0x492e10
mov ecx, dword [esi + 0x140]
push ecx
call fcn.00495790
mov edx, dword [esi + 0x140]
push edx
call fcn.004956a0
add esp, 8
mov edi, eax
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
cmp ecx, dword [eax + 0x1c]
jg 0x492f4a
mov eax, dword [eax + 0x20]
add eax, ecx
mov dword [esp + 0x18], eax
jmp 0x492f5a
mov eax, dword [esi + 0x140]
push eax
call fcn.004956a0
add esp, 4
jmp 0x492f1e
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + 0x28]
push eax
call edx
mov dword [esp + 0x1c], eax
add esp, 4
cmp edi, 0xffff
ja 0x492f9d
mov edx, dword [esi + 0x150]
lea eax, [edi - 0xd800]
mov ecx, 0x3ff
cmp ecx, eax
mov ecx, dword [edx + 0x20]
sbb eax, eax
and eax, 0xfffffec0
mov edx, edi
add eax, 0x140
sar edx, 5
add edx, eax
movzx eax, word [ecx + edx*2]
mov edx, edi
and edx, 0x1f
lea eax, [edx + eax*4]
movzx ebp, word [ecx + eax*2]
jmp 0x493002
cmp edi, 0x10ffff
ja 0x492ff8
mov ecx, edi
sar ecx, 0xa
sub ecx, 0x2840
movzx eax, cx
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx + 0x20]
mov ebx, eax
shr ebx, 5
movzx ebx, word [edx + ebx*2]
and eax, 0x1f
lea eax, [eax + ebx*4]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov eax, dword [ecx + 0x28]
push edx
call eax
mov ecx, dword [esi + 0x150]
add esp, 4
test eax, eax
jle 0x492ff2
mov ecx, dword [ecx + 0x20]
mov edx, edi
sar edx, 5
and edx, 0x1f
jmp 0x492f89
movzx ebp, word [ecx + 0x34]
jmp 0x493002
mov edx, dword [esi + 0x150]
movzx ebp, word [edx + 0x34]
cmp byte [esp + 0xb4], 0
je 0x4930d9
mov eax, dword [esp + 0x18]
cdq
push edx
push eax
mov eax, dword [esi + 0x140]
push eax
call fcn.004955f0
mov ecx, dword [esi + 0x140]
push ecx
call fcn.004956a0
mov edi, eax
add esp, 0x10
cmp edi, 0xffff
ja 0x493077
mov ecx, dword [esi + 0x150]
lea edx, [edi - 0xd800]
mov eax, 0x3ff
cmp eax, edx
sbb eax, eax
and eax, 0xfffffec0
mov edx, edi
add eax, 0x140
sar edx, 5
mov ecx, dword [ecx + 0x20]
add edx, eax
movzx eax, word [ecx + edx*2]
mov edx, edi
and edx, 0x1f
lea eax, [edx + eax*4]
movzx ebp, word [ecx + eax*2]
jmp 0x4930d9
cmp edi, 0x10ffff
ja 0x4930cf
mov ecx, edi
sar ecx, 0xa
sub ecx, 0x2840
movzx eax, cx
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx + 0x20]
mov ebx, eax
shr ebx, 5
movzx ebx, word [edx + ebx*2]
and eax, 0x1f
lea eax, [eax + ebx*4]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov eax, dword [ecx + 0x28]
push edx
call eax
mov ecx, dword [esi + 0x150]
add esp, 4
test eax, eax
jle 0x4930c9
mov edx, edi
sar edx, 5
and edx, 0x1f
jmp 0x493060
movzx ebp, word [ecx + 0x34]
jmp 0x4930d9
mov edx, dword [esi + 0x150]
movzx ebp, word [edx + 0x34]
cmp dword [esp + 0x1c], 0
jg 0x4933c7
mov ebx, dword [esp + 0x14]
jmp 0x4930f0
mov eax, dword [esi + 0x140]
mov ecx, dword [eax + 0x28]
cmp ecx, dword [eax + 0x1c]
jg 0x493105
mov eax, dword [eax + 0x20]
add eax, ecx
jmp 0x493111
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + 0x28]
push eax
call edx
add esp, 4
cmp eax, ebx
jge 0x4932e7
test ebp, 0x4000
jne 0x4931f2
mov eax, dword [esi + 0x140]
push eax
call fcn.00495790
mov ecx, dword [esi + 0x140]
push ecx
call fcn.004956a0
mov edi, eax
add esp, 8
cmp edi, 0xffff
ja 0x493188
mov ecx, dword [esi + 0x150]
lea edx, [edi - 0xd800]
mov eax, 0x3ff
cmp eax, edx
sbb eax, eax
and eax, 0xfffffec0
mov edx, edi
add eax, 0x140
sar edx, 5
mov ecx, dword [ecx + 0x20]
add edx, eax
movzx eax, word [ecx + edx*2]
mov edx, edi
and edx, 0x1f
lea eax, [edx + eax*4]
movzx ebp, word [ecx + eax*2]
jmp 0x4930f0
cmp edi, 0x10ffff
ja 0x4931e3
mov ecx, edi
sar ecx, 0xa
sub ecx, 0x2840
movzx eax, cx
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx + 0x20]
mov ebp, eax
shr ebp, 5
movzx ebp, word [edx + ebp*2]
and eax, 0x1f
lea eax, [eax + ebp*4]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov eax, dword [ecx + 0x28]
push edx
call eax
mov ecx, dword [esi + 0x150]
add esp, 4
test eax, eax
jle 0x4931da
mov edx, edi
sar edx, 5
and edx, 0x1f
jmp 0x49316e
movzx ebp, word [ecx + 0x34]
jmp 0x4930f0
mov edx, dword [esi + 0x150]
movzx ebp, word [edx + 0x34]
jmp 0x4930f0
push edi
mov ecx, esi
call fcn.00492190
test eax, eax
je 0x493226
mov edx, dword [eax]
mov edx, dword [edx + 8]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x174]
push ecx
mov ecx, dword [esp + 0x20]
push 0
push ebx
push ecx
mov ecx, dword [esi + 0x140]
push ecx
mov ecx, eax
call edx
add dword [esp + 0x10], eax
mov eax, dword [esi + 0x140]
push eax
call fcn.004956a0
mov edi, eax
add esp, 4
cmp edi, 0xffff
ja 0x49327a
lea ecx, [edi - 0xd800]
mov edx, 0x3ff
cmp edx, ecx
mov ecx, dword [esi + 0x150]
sbb eax, eax
and eax, 0xfffffec0
mov edx, edi
add eax, 0x140
sar edx, 5
mov ecx, dword [ecx + 0x20]
add edx, eax
movzx eax, word [ecx + edx*2]
mov edx, edi
and edx, 0x1f
lea eax, [edx + eax*4]
movzx ebp, word [ecx + eax*2]
jmp 0x4932dc
cmp edi, 0x10ffff
ja 0x4932d2
mov ecx, edi
sar ecx, 0xa
sub ecx, 0x2840
movzx eax, cx
mov ecx, dword [esi + 0x150]
mov edx, dword [ecx + 0x20]
mov ebp, eax
shr ebp, 5
movzx ebp, word [edx + ebp*2]
and eax, 0x1f
lea eax, [eax + ebp*4]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov eax, dword [ecx + 0x28]
push edx
call eax
mov ecx, dword [esi + 0x150]
add esp, 4
test eax, eax
jle 0x4932cc
mov edx, edi
sar edx, 5
and edx, 0x1f
jmp 0x493263
movzx ebp, word [ecx + 0x34]
jmp 0x4932dc
mov edx, dword [esi + 0x150]
movzx ebp, word [edx + 0x34]
cmp dword [esp + 0x1c], 0
jle 0x4930f0
cmp dword [esp + 0x10], 0
jle 0x4933c7
mov edi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x24]
call fcn.00487e60
mov ebx, dword [esp + 0xac]
cmp ebx, eax
jge 0x49330d
inc edi
mov eax, dword [esp + 0x24]
dec eax
push eax
lea ecx, [esp + 0x24]
call fcn.00487e60
cmp dword [esp + 0xb0], eax
jle 0x493326
inc edi
lea ecx, [edi*4]
push ecx
call fcn.0045bb10
add esp, 4
mov dword [esi + 0x160], eax
test eax, eax
je 0x4933ce
xor ebp, ebp
push ebp
lea ecx, [esp + 0x24]
mov dword [esi + 0x164], edi
call fcn.00487e60
cmp ebx, eax
jge 0x493367
mov edx, dword [esi + 0x160]
mov dword [edx], ebx
mov ebp, 1
xor edi, edi
cmp dword [esp + 0x10], edi
jle 0x49338b
nop
push edi
lea ecx, [esp + 0x24]
call fcn.00487e60
mov ecx, dword [esi + 0x160]
mov dword [ecx + ebp*4], eax
inc edi
inc ebp
cmp edi, dword [esp + 0x10]
jl 0x493370
mov edx, dword [esi + 0x160]
mov ecx, dword [esp + 0xb0]
cmp ecx, dword [edx + ebp*4 - 4]
lea eax, [edx + ebp*4]
jle 0x4933a3
mov dword [eax], ecx
cmp byte [esp + 0xb4], 0
mov eax, dword [esi]
je 0x4933bb
mov edx, dword [eax + 0x40]
push ecx
mov ecx, esi
call edx
mov esi, eax
jmp 0x493406
mov edx, dword [eax + 0x3c]
push ebx
mov ecx, esi
call edx
mov esi, eax
jmp 0x493406
mov ebx, dword [esp + 0xac]
cmp byte [esp + 0xb4], 0
mov eax, ebx
jne 0x4933e1
mov eax, dword [esp + 0xb0]
cdq
push edx
push eax
mov eax, dword [esi + 0x140]
push eax
call fcn.004955f0
add esp, 0xc
cmp byte [esp + 0xb4], 0
mov esi, ebx
jne 0x493406
mov esi, dword [esp + 0xb0]
lea ecx, [esp + 0x20]
call fcn.004992c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 0xc