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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xcf8
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0xcf4], eax
push esi
push edi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xb4], eax
mov al, byte [ebp + 0x18]
movzx ecx, byte [edx + 0x10a22b68]
mov byte [esp + 0x5b], al
mov dword [esp + 0x48], ecx
movzx ecx, al
mov esi, dword [ebp + 8]
mov dword [esp + 0x80], ecx
lea eax, [ecx + ecx]
mov dword [esp + 0x70], 0
mov dword [esp + 0xa0], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
shl eax, cl
mov ecx, dword [esp + 0x80]
sar eax, cl
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x10d4]
mov ecx, eax
sar ecx, 5
test eax, eax
mov eax, dword [esp + 0x70]
cmovs eax, ecx
mov dword [esp + 0x60], 0
add eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x10dc]
mov dword [esp + 0x70], eax
mov eax, ecx
sar eax, 5
test ecx, ecx
mov ecx, dword [esp + 0x60]
cmovs ecx, eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x48]
movzx edx, byte [edx + 0x10a22b80]
shl eax, 2
add ecx, edx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10e8]
mov edi, dword [ebp + 0xc]
shl edx, 2
mov eax, dword [eax + 0x8c]
shr eax, 3
and eax, 1
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0xfc]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x10c]
push eax
mov eax, dword [esp + 0x48]
push ecx
push dword [esi + 0x28]
mov dword [esp + 0x80], edi
push dword [esi + 0x18]
mov dword [esp + 0x88], 0
push eax
push dword [esi]
push eax
push edx
je 0x1049265e
call dword [0x10b48f98]
jmp 0x10492664
call dword [0x10b48a30]
add esp, 0x20
mov dword [esp + 0x8c], 1
cmp byte [esp + 0x5b], 1
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi], 0
jne 0x1049281f
mov eax, dword [esp + 0x6c]
cmp byte [eax + 0x10a22b98], 0x10
jb 0x1049281f
cmp byte [eax + 0x10a22bb0], 8
jb 0x1049281f
mov eax, dword [esp + 0x84]
xor eax, 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x88], eax
je 0x1049282a
mov edx, dword [esp + 0x70]
mov eax, edx
cmp dword [esp + 0x48], edx
mov edi, dword [esp + 0x50]
cmovl eax, dword [esp + 0x48]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x54], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x64], ecx
cmp dword [esp + 0x60], ecx
jle 0x1049282a
mov edx, dword [esp + 0x44]
xor edi, edi
imul edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x5c], edi
shl edx, 3
mov dword [esp + 0x7c], edx
mov edx, ecx
nop dword [eax]
mov dword [esp + 0x50], 0
test eax, eax
jle 0x104927db
mov ecx, dword [esp + 0xa0]
mov eax, 2
shl eax, cl
mov edi, edx
mov dword [esp + 0x6c], eax
mov eax, 0x40
shl eax, cl
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x4c]
shl edi, 5
shl eax, 4
mov dword [esp + 0x90], eax
mov dword [esp + 0x68], ecx
nop dword [eax + eax]
mov eax, dword [esi + 0xc]
add eax, edi
push eax
mov eax, dword [esi]
push dword [esp + 0x48]
add eax, ecx
push eax
call dword [0x10b48dc4]
mov edx, dword [esp + 0x48]
add esp, 0xc
add edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x68]
add ecx, dword [esp + 0x90]
add edi, dword [esp + 0x94]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x68], ecx
lea eax, [eax + edx*2]
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x54]
jl 0x10492780
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x5c]
add ecx, dword [esp + 0x4c]
add edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], edi
cmp ecx, dword [esp + 0x60]
jl 0x10492730
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x4c0]
shl eax, 7
add eax, 0x107edf00
mov dword [esp + 0x3c], edx
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
jmp 0x10492858
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x4c0]
shl eax, 7
xor ecx, ecx
add eax, 0x107edf00
mov dword [esp + 0x3c], edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
cmp dword [esp + 0x60], ecx
jle 0x10492cd4
mov eax, dword [esp + 0x4c]
mov edi, eax
imul edi, dword [esp + 0x48]
shl dword [esp + 0x9c], 5
mov dword [esp + 0x7c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x50], esi
mov dword [esp + 0xb0], edi
mov edi, dword [esp + 0x44]
imul edi, eax
shl edi, 3
mov dword [esp + 0xac], edi
mov edi, dword [esp + 0x74]
nop dword [eax + eax]
cmp dword [esp + 0x70], 0
mov dword [esp + 0x94], 0
jle 0x10492c9b
mov ecx, dword [esp + 0xa0]
mov eax, 0x10
shl eax, cl
mov dword [esp + 0x48], eax
mov eax, 0x20
shl eax, cl
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x4c]
shl eax, 3
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x50]
add eax, 0x23b81
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x98], eax
mov eax, dword [esi]
add eax, ecx
mov ecx, dword [esp + 0x80]
sub ecx, 1
je 0x10492a73
sub ecx, 1
je 0x104929b5
cmp dword [esp + 0x84], 0
push dword [esp + 0x44]
je 0x10492972
lea ecx, [esp + 0x4c4]
push ecx
push eax
call dword [0x10b48fa8]
mov eax, dword [esp + 0x68]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x54]
push eax
push dword [esi + 0x44]
lea eax, [esp + 0x8dc]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [esi + 0x3c]
push dword [esi + 0x2c]
push dword [esi + 0x30]
push dword [esi + 0x40]
push 0x10
jmp 0x10492ac4
push edx
push eax
call dword [0x10b48f9c]
mov eax, dword [esp + 0x68]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x54]
push eax
push dword [esi + 0x44]
lea eax, [esp + 0x8dc]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x30]
push 0x10
push dword [esp + 0x6c]
call dword [0x10b48570]
add esp, 0x34
jmp 0x10492bb8
cmp dword [esp + 0x84], 0
je 0x10492a20
lea ecx, [esp + 0x4c0]
push ecx
push dword [esp + 0x48]
push eax
call dword [0x10b48e08]
push 0x10a22390
push 0x10a21f90
lea eax, [esp + 0x54]
push eax
push dword [esi + 0x44]
lea eax, [esp + 0x8dc]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [esi + 0x3c]
lea eax, [esp + 0x4e8]
push dword [esi + 0x2c]
push dword [esi + 0x30]
push dword [esi + 0x40]
push 0x100
push eax
call dword [0x10b4857c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x78], eax
jmp 0x10492ad2
push edx
push dword [esp + 0x48]
push eax
call dword [0x10b48de0]
push 0x10a22190
push 0x10a21d90
lea eax, [esp + 0x54]
push eax
push dword [esi + 0x44]
lea eax, [esp + 0x8dc]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x30]
push 0x100
push dword [esp + 0x6c]
call dword [0x10b48570]
mov eax, dword [esp + 0x70]
add esp, 0x34
mov dword [esp + 0x3c], eax
jmp 0x10492bb8
cmp dword [esp + 0x84], 0
je 0x10492b57
lea ecx, [esp + 0x4c0]
push ecx
push dword [esp + 0x48]
push eax
call dword [0x10b48dec]
push 0x10a21d10
push 0x10a21c90
lea eax, [esp + 0x54]
push eax
push dword [esi + 0x44]
lea eax, [esp + 0x8dc]
push eax
lea eax, [esp + 0xe0]
push eax
push dword [esi + 0x3c]
push dword [esi + 0x2c]
push dword [esi + 0x30]
push dword [esi + 0x40]
push 0x40
lea eax, [esp + 0x4f8]
push eax
call dword [0x10b4857c]
movzx ecx, word [esp + 0x7c]
xor eax, eax
mov edx, dword [esp + 0x90]
add esp, 0x3c
test ecx, ecx
sete al
mov dword [esp + 0x90], eax
mov byte [edx], al
lea eax, [ecx + 1]
bsr eax, eax
add dword [esp + 0x78], eax
cmp ecx, 1
jne 0x10492b0e
mov eax, dword [esp + 0xc0]
cdq
xor eax, edx
sub eax, edx
jmp 0x10492b25
jbe 0x10492b27
push dword [esp + 0x48]
lea eax, [esp + 0xc4]
push eax
call dword [0x10b4904c]
add esp, 8
add dword [edi], eax
push dword [esi + 0x1b58]
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x8cc]
push eax
lea eax, [esp + 0x4d0]
push eax
call dword [0x10b48604]
add esp, 0x14
jmp 0x10492c21
cmp dword [esp + 0x88], 0
je 0x10492b71
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x98]
mov dword [esp + 0x3c], eax
jmp 0x10492b84
push edx
push dword [esp + 0x48]
push eax
call dword [0x10b48dd0]
mov eax, dword [esp + 0x48]
add esp, 0xc
push 0x10a21d10
push 0x10a21c90
lea ecx, [esp + 0x48]
push ecx
push dword [esi + 0x44]
lea ecx, [esp + 0x8d0]
push ecx
lea ecx, [esp + 0xd4]
push ecx
push dword [esi + 0x2c]
push dword [esi + 0x30]
push 0x40
push eax
call dword [0x10b48570]
add esp, 0x28
movzx ecx, word [esp + 0x40]
xor eax, eax
mov edx, dword [esp + 0x54]
test ecx, ecx
sete al
mov dword [esp + 0x90], eax
mov byte [edx], al
lea eax, [ecx + 1]
bsr eax, eax
add dword [esp + 0x78], eax
cmp ecx, 1
jne 0x10492bef
movsx eax, word [esp + 0xc0]
cdq
xor eax, edx
sub eax, edx
jmp 0x10492c06
jbe 0x10492c08
push dword [esp + 0x48]
lea eax, [esp + 0xc4]
push eax
call dword [0x10b49044]
add esp, 8
add dword [edi], eax
push dword [esp + 0x48]
lea eax, [esp + 0x8c4]
push eax
push dword [esp + 0x44]
call dword [0x10b486cc]
add esp, 0xc
mov ecx, dword [esp + 0x6c]
shrd eax, edx, 2
sar edx, 2
add dword [edi + 8], eax
mov eax, dword [esp + 0x90]
adc dword [edi + 0xc], edx
mov edx, dword [esp + 0x94]
mov edi, dword [esp + 0x4c]
add dword [esp + 0x54], edi
add edx, dword [esp + 0x4c]
mov edi, dword [esp + 0xa8]
and eax, dword [esp + 0x8c]
add ecx, dword [esp + 0xa4]
add dword [esp + 0x98], edi
cmp edx, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x8c], eax
jl 0x10492904
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x9c]
add ecx, eax
add dword [esp + 0x7c], edx
mov edx, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
add dword [esp + 0x68], edx
add dword [esp + 0x50], edi
mov edi, dword [esp + 0x74]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x64], ecx
cmp ecx, dword [esp + 0x60]
jl 0x104928a0
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x8c]
mov dword [eax], edx
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
mov byte [edi + 0x20], dl
cmp ecx, 0x7fffffff
jg 0x10492d2e
jl 0x10492cfc
cmp eax, 0xffffffff
jae 0x10492d2e
shld ecx, eax, 6
shl eax, 6
shrd eax, ecx, 2
sar ecx, 2
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
test edx, edx
je 0x10492d2e
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
pop edi
pop esi
mov ecx, dword [esp + 0xcf4]
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [esp + 0x78]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0xcfc]
shl eax, 9
mov dword [edi], eax
pop edi
pop esi
xor ecx, esp
call fcn.105116c0
mov esp, ebp
pop ebp
ret