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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xffffffe0
sub esp, 0xc0
mov edi, dword [edx + 0xc8]
mov esi, dword [ebp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x14c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x7c], edi
mov edi, dword [edx + 0xd0]
test esi, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edi
mov edi, dword [edx + 0xcc]
mov dword [esp + 0x50], edi
je 0xa9245e
mov eax, dword [esp + 0x54]
test eax, eax
jle 0xa92567
mov eax, edi
xor ecx, ecx
dec eax
xor edx, edx
mov edi, eax
and eax, 0xfffffff8
shr edi, 3
xor ebx, ebx
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x7c]
add eax, 8
mov dword [esp + 0x5c], ecx
mov ecx, esi
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], ebx
shl edi, 3
mov dword [esp + 0x44], edi
xor edi, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x3c], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [esp + 0x50]
test eax, eax
jle 0xa92385
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x48]
add esi, edx
mov dword [esp + 0x78], esi
lea esi, [eax + eax]
mov eax, dword [esp + 0x3c]
mov ebx, edi
add ebx, edx
add eax, edx
add eax, edi
mov dword [esp + 0x6c], eax
lea edi, [esp + 0x80]
lea esi, [esi]
mov eax, dword [ecx + 0x2c]
mov edx, 8
mov dword [esp + 0x10], ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0xc], ecx
mov ecx, 8
mov dword [esp + 4], ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp], edi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, 8
mov dword [esp + 4], eax
call dword [ecx + 0x9020]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
mov edx, dword [edx + 0x2140]
movzx edx, word [edx + esi]
cmp eax, edx
cmovge eax, edx
add ebx, 8
add dword [esp + 0x68], eax
add esi, 2
add dword [esp + 0x78], 8
cmp dword [esp + 0x6c], ebx
jne 0xa922f0
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x40]
lea eax, [eax + edi + 1]
mov dword [esp + 0x5c], eax
add dword [esp + 0x60], 8
mov edi, dword [esp + 0x44]
add dword [esp + 0x58], edi
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x54], eax
jg 0xa922b0
mov esi, ecx
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 0x34c]
test eax, eax
jne 0xa923d5
mov ecx, dword [edi + 0x344]
mov eax, 1
test ecx, ecx
je 0xa923d5
mov eax, dword [edi + 0x4880]
mov ebx, dword [edi + 0x4884]
imul eax, ebx
lea eax, [ecx + eax - 1]
cdq
idiv ecx
mov edx, dword [esi + 0x20]
mov edi, dword [esi + 0x24]
movzx edx, byte [edx + 0xdfcf41]
lea ecx, [edi + edi]
lea ebx, [edx + edx + 0xa]
mov edx, 1
sub edx, ecx
cmovs edx, ecx
cmp edx, 0xff
jle 0xa9244c
sar edx, 8
movzx ecx, byte [edx + 0xdfcf40]
add ecx, 0x10
mov esi, dword [esi + 0x28]
mov edx, 1
add esi, esi
sub edx, esi
cmovs edx, esi
cmp edx, 0xff
jle 0xa92455
sar edx, 8
movzx edx, byte [edx + 0xdfcf40]
add edx, 0x10
add ecx, edx
lea edx, [ebx + ecx*2]
mov ecx, dword [esp + 0x68]
imul eax, edx
add eax, ecx
mov dword [esp + 0x74], eax
emms
mov eax, dword [esp + 0x74]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [edx + 0xdfcf40]
jmp 0xa92408
movzx edx, byte [edx + 0xdfcf40]
jmp 0xa9242c
mov eax, dword [esp + 0x54]
test eax, eax
jle 0xa92572
mov eax, edi
xor ecx, ecx
dec eax
xor ebx, ebx
mov esi, eax
and eax, 0xfffffff8
shr esi, 3
xor edi, edi
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x7c]
add eax, 8
mov dword [esp + 0x68], ecx
mov ecx, edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], edi
shl esi, 3
mov dword [esp + 0x58], esi
xor esi, esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x40], eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [esp + 0x50]
test edx, edx
jle 0xa92547
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x60]
mov ebx, edx
add ebx, eax
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x40]
add edi, eax
add esi, esi
add ebx, eax
mov eax, ebx
mov ebx, dword [esp + 0x78]
add eax, edx
mov dword [esp + 0x6c], eax
lea esi, [esi]
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
call dword [eax + 0x9020]
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0x2140]
movzx edx, word [edx + esi]
cmp eax, edx
cmovge eax, edx
add ebx, 8
add dword [esp + 0x74], eax
add edi, 8
add esi, 2
cmp dword [esp + 0x6c], ebx
jne 0xa924f0
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x44]
lea eax, [eax + esi + 1]
mov dword [esp + 0x60], eax
add dword [esp + 0x68], 8
mov edi, dword [esp + 0x58]
add dword [esp + 0x5c], edi
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x54], eax
jg 0xa924b0
jmp 0xa9243e
xor edi, edi
mov dword [esp + 0x68], edi
jmp 0xa923a2
xor eax, eax
mov dword [esp + 0x74], eax
jmp 0xa9243e