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

Disassembly:
sub esp, 0x74
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x6c], eax
mov edx, ecx
mov dword [esp + 0x60], 0xffffffff
push ebx
push ebp
push esi
mov esi, dword [edx + 0xc]
xor ebp, ebp
mov ebx, dword [edx]
push edi
mov dword [esp + 0x34], ebx
movzx eax, byte [esi + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], 1
lea ecx, [eax + eax*8]
mov eax, dword [ebx + 4]
lea ecx, [ecx + 1]
mov ebx, dword [eax + ecx*8 + 0x44]
lea edi, [eax + ecx*8]
mov eax, dword [edx + 4]
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x4928b7
push 0x38
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0056cbb0
mov ecx, dword [esp + 0x38]
mov eax, 1
mov word [esp + 0x72], ax
add esp, 0xc
lea eax, [esp + 0x70]
mov byte [esp + 0x68], 5
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 1
test byte [edi + 0x24], 1
jne 0x4928b3
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
lea ebx, [esp + 0x38]
push 0
push dword [ecx + 0x1c]
call fcn.004348a0
movzx eax, ax
mov dword [esp + 0x24], eax
cwde
cdq
push edx
push eax
call fcn.004348a0
movzx eax, ax
add esp, 0x10
cmp ax, 0x21
jle 0x4928e9
add eax, 0xffffffdf
movzx ecx, ax
mov dword [esp + 0x18], ecx
jmp 0x4928ed
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x10], ebp
jne 0x492a02
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov eax, dword [eax]
test dword [eax + 0x18], 0x100000
je 0x492a02
cmp dword [edi + 0x44], ebp
jne 0x492a02
test byte [edi + 0x24], 7
jne 0x492a02
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0xc]
mov edi, dword [edx + 0x14]
lea eax, [eax + eax*2]
shl eax, 4
add eax, edi
mov dword [esp + 0x28], eax
cmp edi, eax
jae 0x4929fa
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
and ecx, dword [edi + 0x20]
and eax, dword [edi + 0x24]
or ecx, eax
jne 0x4929d6
mov edx, dword [esp + 0x30]
push ecx
push ecx
mov ecx, edi
call fcn.0048ef30
add esp, 8
test eax, eax
je 0x4929d6
mov ecx, dword [esp + 0x18]
mov eax, 1
mov word [esi + 0x28], ax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x18], 1
mov dword [esi + 0x1c], 0
mov dword [eax], edi
mov eax, dword [esp + 0x1c]
add eax, 0x1c
add eax, ecx
mov word [esi + 0x12], ax
mov eax, 0x2b
mov edx, eax
mov word [esi + 0x16], ax
call fcn.00434840
mov word [esi + 0x14], ax
mov edx, esi
mov dword [esi + 0x24], 0x4000
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
or ecx, dword [esp + 0x88]
or eax, dword [esp + 0x8c]
mov dword [esi], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], eax
call fcn.00491f70
mov ebp, eax
mov eax, dword [esp + 0x28]
add edi, 0x30
test ebp, ebp
je 0x492938
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00564de8
add esp, 0x74
ret
test ebp, ebp
jne 0x492bc1
test ebx, ebx
je 0x492bc1
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x492a2a
movzx ecx, byte [esi + 0x10]
mov edx, dword [esp + 0x20]
push eax
call fcn.00492740
add esp, 4
test eax, eax
je 0x492bb2
mov ebp, dword [esp + 0x30]
xor eax, eax
mov edi, dword [esp + 0x1c]
mov edx, ebx
mov ecx, dword [esp + 0x14]
mov word [esi + 0x28], ax
mov byte [esi + 0x11], al
mov word [esi + 0x12], ax
mov eax, dword [esp + 0x88]
mov dword [esi], eax
mov eax, dword [esp + 0x8c]
mov dword [esi + 0x18], 0
mov dword [esi + 4], eax
mov word [esi + 0x16], di
mov dword [esi + 0x1c], ebx
push dword [ebp + 0x2c]
call fcn.00492610
add esp, 4
mov dword [esp + 0x28], eax
cmp dword [ebx + 0x28], 0
jg 0x492aa7
mov ecx, dword [esp + 0x24]
xor edx, edx
movzx ecx, cl
test eax, eax
mov dword [esi + 0x24], 0x100
cmovne edx, ecx
mov ecx, edi
mov byte [esi + 0x11], dl
mov edx, dword [esp + 0x18]
call fcn.00434840
add ax, 0x10
jmp 0x492b73
mov ecx, ebx
call fcn.004926d0
mov edi, eax
not edx
and edx, dword [ebp + 0x3c]
not edi
and edi, dword [ebp + 0x38]
mov eax, 0x240
mov ecx, edi
or ecx, edx
je 0x492aca
mov eax, 0x200
cmp dword [esp + 0x28], 0
mov dword [esi + 0x24], eax
jne 0x492b1f
mov eax, edi
or eax, edx
jne 0x492b95
test byte [ebx + 0x34], 4
jne 0x492b95
mov ecx, dword [esp + 0x2c]
mov ax, word [ebx + 0x2c]
cmp ax, word [ecx + 0x2a]
jge 0x492b95
mov eax, dword [esp + 0x34]
test byte [eax + 0x22], 4
jne 0x492b95
cmp dword [0x5e3f50], 0
je 0x492b95
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x3c], 0x40
jne 0x492b95
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [esp + 0x28], ecx
movzx eax, al
cmovne ecx, eax
or edi, edx
mov byte [esi + 0x11], cl
jne 0x492b69
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
call fcn.00434840
movsx ecx, word [ebx + 0x2c]
lea edi, [eax + 1]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
movsx ecx, word [ecx + 0x2a]
idiv ecx
add di, ax
mov word [esi + 0x14], di
mov edi, dword [esp + 0x1c]
jmp 0x492b77
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add eax, edi
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x20]
mov edx, esi
call fcn.004920f0
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.00491f70
mov word [esi + 0x16], di
test eax, eax
jne 0x492bc3
mov ecx, dword [esp + 0x14]
mov edx, ebp
push 0
push ebx
call fcn.004921b0
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x44], 0
jne 0x492bc1
inc dword [esp + 0x24]
mov ebx, dword [ebx + 0x14]
test ebp, ebp
je 0x492a02
mov eax, ebp
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00564de8
add esp, 0x74
ret