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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x80]
shl ebx, 4
add ebx, 0x1254d20
movzx eax, byte [ebx + 7]
test al, 8
jne 0xad1276
test al, 2
jne 0xad12a4
movzx esi, byte [ebx + 4]
xor edx, edx
xor eax, eax
test esi, esi
je 0xad1276
movzx ecx, byte [ebx + eax*2 + 8]
and ecx, 3
add ecx, 1
cmp edx, ecx
cmovl edx, ecx
add eax, 1
cmp eax, esi
jl 0xad106b
sub edx, 1
mov eax, 0xffffffff
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x20], ebx
mov ebx, eax
neg edx
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x80], 0x12a
mov esi, 0xffffffea
ja 0xad11fe
mov ecx, dword [esp + 0x20]
movzx ebp, byte [ecx + 7]
test ebp, 8
jne 0xad11fe
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
movzx eax, byte [ecx + 8]
mov edx, eax
shr al, 2
and edx, 3
and eax, 7
add eax, 1
mov dword [esp + edx*4 + 0x30], eax
movzx eax, byte [ecx + 0xa]
mov edx, eax
and eax, 3
shr dl, 2
and edx, 7
cmp edx, dword [esp + eax*4 + 0x30]
jl 0xad1145
add edx, 1
mov dword [esp + eax*4 + 0x30], edx
mov dword [esp + eax*4 + 0x40], 1
mov edx, dword [esp + 0x20]
movzx eax, byte [edx + 0xc]
mov edx, eax
and eax, 3
shr dl, 2
and edx, 7
cmp edx, dword [esp + eax*4 + 0x30]
jl 0xad116d
add edx, 1
mov dword [esp + eax*4 + 0x30], edx
mov dword [esp + eax*4 + 0x40], 2
mov ecx, dword [esp + 0x20]
movzx eax, byte [ecx + 0xe]
mov edx, eax
and eax, 3
shr dl, 2
and edx, 7
cmp edx, dword [esp + eax*4 + 0x30]
jl 0xad1195
add edx, 1
mov dword [esp + eax*4 + 0x30], edx
mov dword [esp + eax*4 + 0x40], 3
mov edi, dword [esp + 0x84]
mov esi, 0xffffffea
mov eax, dword [esp + ebx*4 + 0x34]
mov edx, dword [esp + ebx*4 + 0x44]
test edi, edi
mov dword [esp + 0x18], eax
js 0xad11fe
sub edx, 1
xor ecx, ecx
cmp edx, 1
mov eax, 1
jbe 0xad1295
mov edx, dword [esp + 0x84]
lea edi, [eax + edx - 1]
sar edi, cl
test edi, edi
je 0xad11ec
mov eax, 0x7fffffff
mov esi, 0xffffffea
mov edx, eax
sar edx, 0x1f
idiv edi
cmp dword [esp + 0x18], eax
jg 0xad11fe
mov esi, dword [esp + 0x18]
imul esi, edi
and ebp, 4
je 0xad11fe
add esi, 7
sar esi, 3
cmp ebx, 1
mov edi, dword [esp + 0x88]
jbe 0xad1280
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [edx + ebx*4 + 4]
mov ebp, dword [ecx + ebx*4 + 4]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x74]
test ebp, ebp
mov eax, dword [edx + ebx*4 + 4]
mov edx, dword [ecx + ebx*4 + 4]
je 0xad1269
test edx, edx
je 0xad1269
test edi, edi
jle 0xad1269
mov dword [esp + 0x24], ebx
mov ebx, edx
mov dword [esp + 0x1c], esi
mov esi, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
mov dword [esp], ebx
add ebx, esi
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
add ebp, dword [esp + 0x18]
sub edi, 1
jne 0xad1246
mov ebx, dword [esp + 0x24]
add ebx, 1
cmp ebx, dword [esp + 0x28]
jne 0xad10a1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
movzx ecx, byte [eax + 6]
sar edi, cl
neg edi
jmp 0xad120a
mov edx, dword [esp + 0x20]
movzx ecx, byte [edx + 5]
shl eax, cl
jmp 0xad11c4
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x74]
mov ebx, dword [edx]
mov ebp, dword [eax]
mov eax, dword [esp + 0x70]
mov edi, dword [ecx]
test ebx, ebx
mov esi, dword [eax]
je 0xad1302
test esi, esi
je 0xad1302
mov eax, dword [esp + 0x88]
test eax, eax
jle 0xad1302
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x88]
lea esi, [esi]
mov edx, dword [esp + 0x84]
mov dword [esp + 4], ebx
add ebx, ebp
mov dword [esp], esi
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
add esi, dword [esp + 0x18]
sub edi, 1
jne 0xad12e0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov edi, dword [ecx + 4]
mov esi, dword [eax + 4]
mov eax, 0x400
test edi, 1
jne 0xad1351
test edi, 2
jne 0xad1363
mov ecx, eax
xor edx, edx
shr ecx, 2
test al, 2
rep movsd dword es:[edi], dword [esi]
je 0xad133d
movzx edx, word [esi]
mov word [edi], dx
mov edx, 2
test al, 1
je 0xad1276
movzx eax, byte [esi + edx]
mov byte [edi + edx], al
jmp 0xad1276
movzx eax, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov eax, 0x3ff
jmp 0xad131d
movzx edx, word [esi]
sub eax, 2
add esi, 2
mov word [edi], dx
add edi, 2
jmp 0xad1325