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

Disassembly:
sub esp, 0x60
mov eax, dword [0x727a48]
push ebx
inc eax
push ebp
mov dword [esp + 0x1c], eax
mov al, byte [0x7381c6]
push esi
push edi
test al, 1
je 0x42227e
mov al, byte [0x73693f]
test al, al
je 0x422272
xor eax, eax
mov edi, 0x738348
mov dword [esp + 0x18], eax
jmp 0x422208
mov eax, dword [esp + 0x18]
mov ebx, eax
mov ebp, eax
xor esi, esi
and ebx, 4
and ebp, 2
and eax, 1
mov dword [esp + 0x68], eax
jmp 0x422221
mov eax, dword [esp + 0x68]
mov ecx, esi
mov edx, esi
shr ecx, 3
and ecx, 0x18
or ecx, ebx
push ecx
mov ecx, esi
and ecx, 7
shr edx, 1
shl ecx, 1
and edx, 0x1c
or ecx, eax
or edx, ebp
shl ecx, 1
push edx
push ecx
call dword [0x7381d0]
add esp, 0xc
mov word [edi], ax
inc esi
add edi, 2
cmp esi, 0x100
jb 0x42221d
mov ecx, dword [esp + 0x18]
inc ecx
cmp edi, 0x739348
mov dword [esp + 0x18], ecx
jb 0x422204
mov byte [0x73693f], 0
mov dword [0x737b8c], 0x738348
jmp 0x422288
mov dword [0x737b8c], 0x73757c
mov edx, dword [0x737bac]
mov eax, dword [esp + 0x78]
xor esi, esi
mov ebp, 0x100
mov eax, dword [edx + eax*4]
mov dword [esp + 0x18], esi
test eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x4c], eax
jne 0x4222b4
mov dword [esp + 0x4c], 1
mov ecx, dword [0x737b58]
mov eax, dword [0x737ba4]
imul ecx, eax
mov edi, dword [esp + 0x74]
mov edx, dword [0x737b88]
add edi, ecx
mov ecx, dword [0x737b78]
imul ecx, eax
add ecx, edx
lea edx, [eax + eax*2]
mov dword [esp + 0x44], ecx
mov ecx, eax
mov eax, dword [0x737ba8]
mov dword [esp + 0x74], edi
lea edi, [edx*4 + 0x735c68]
cmp ecx, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x38], ecx
ja 0x422764
mov eax, 0x105
sub eax, ecx
mov dword [esp + 0x40], eax
mov eax, ecx
shl eax, 4
add eax, 0x734cb8
mov dword [esp + 0x3c], eax
xor edx, edx
mov dx, word [eax + 2]
shl edx, 0x13
sar edx, 0x13
movsx ebx, word [edi + 0xa]
mov dword [esp + 0x20], edx
xor edx, edx
mov dx, word [eax]
mov eax, edx
movsx edx, word [edi + 8]
shl eax, 0x13
shl edx, 0x13
shl ebx, 0x13
sar eax, 0x13
sar edx, 0x13
sar ebx, 0x13
cmp byte [0x769644], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x6c], ebx
je 0x422361
mov ecx, dword [esp + 0x40]
cmp byte [0x769645], 0
mov dword [esp + 0x10], ecx
jne 0x422388
sub eax, ebx
mov ecx, 0x3ff
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
jmp 0x422390
sub eax, ebx
add ecx, eax
mov dword [esp + 0x10], ecx
movsx eax, word [edi + 2]
imul eax, ecx
shl edx, 8
add eax, edx
mov dword [esp + 0x5c], eax
movsx eax, word [edi + 6]
imul eax, ecx
mov ecx, dword [esp + 0x4c]
shl ebx, 8
add eax, ebx
test ecx, ecx
mov dword [esp + 0x58], eax
jbe 0x422712
mov edx, dword [esp + 0x78]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x737bac]
lea eax, [edx*4 + 0xa8]
mov dword [esp + 0x64], eax
jmp 0x4223e3
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov edx, dword [esp + 0x78]
cmp dword [ecx + edx*4], 0
je 0x422407
mov esi, dword [eax + ecx - 0x90]
mov ebp, dword [eax + ecx]
cmp ebp, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], ebp
jbe 0x4226e2
mov eax, dword [esp + 0x44]
lea ecx, [eax + esi]
mov al, byte [0x769643]
test al, al
je 0x422440
dec esi
lea ebx, [ebp - 1]
mov dword [esp + 0x14], esi
mov dword [esp + 0x28], 0xffffffff
movsx esi, word [edi]
movsx edi, word [edi + 4]
mov eax, esi
neg eax
mov dword [esp + 0x2c], eax
mov eax, edi
neg eax
mov dword [esp + 0x30], eax
jmp 0x42245d
mov ebx, esi
mov dword [esp + 0x14], ebp
movsx esi, word [edi]
movsx edi, word [edi + 4]
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov al, byte [0x769645]
test al, al
jne 0x42247c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
sub eax, edx
mov ebp, 0x3ff
cdq
idiv ebp
add edx, ebx
jmp 0x42248a
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, ebx
sub edx, ebp
add edx, eax
mov al, byte [0x769645]
imul esi, edx
imul edi, edx
test al, al
jne 0x422585
mov eax, dword [esp + 0x14]
mov dword [esp + 0x50], ebx
cmp ebx, eax
je 0x4226dc
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
add edx, edi
lea edi, [esi + eax]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x74]
sub eax, ecx
add eax, esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x60], eax
mov esi, edx
mov eax, edi
sar esi, 8
mov ebp, dword [0x727a48]
and esi, 0x3ff
sar eax, 8
and eax, 0x3ff
mov edx, esi
and edx, 0xfffffff8
mov ebx, eax
shl edx, 5
sar ebx, 2
and ebx, 0xfffffffe
add ebp, edx
xor edx, edx
and esi, 7
mov dl, byte [ebx + ebp]
and eax, 7
lea edx, [esi + edx*8]
mov esi, dword [esp + 0x24]
lea edx, [eax + edx*8]
xor eax, eax
mov al, byte [esi + edx*2]
mov esi, dword [0x737bb4]
mov edx, eax
shr edx, 7
shr esi, 7
and edx, esi
mov dl, byte [edx + 0x726f18]
mov byte [0x737b94], dl
mov bl, byte [ecx]
cmp dl, bl
jbe 0x422551
test eax, eax
je 0x422551
mov dl, byte [0x737bb0]
and al, dl
mov edx, dword [esp + 0x60]
mov byte [edx + ecx], al
mov al, byte [0x737b94]
mov byte [ecx], al
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
add edi, edx
mov edx, dword [esp + 0x54]
add eax, esi
mov esi, dword [esp + 0x14]
add edx, ebp
inc ecx
cmp eax, esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jne 0x4224ce
jmp 0x4226dc
mov eax, dword [esp + 0x14]
mov ebp, ebx
cmp ebx, eax
mov dword [esp + 0x54], ebp
je 0x4226dc
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
add eax, esi
mov esi, dword [esp + 0x18]
add edx, edi
mov edi, dword [esp + 0x74]
sub esi, ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
add edi, esi
mov esi, edx
mov dl, byte [0x73833f]
sar eax, 8
sar esi, 8
test dl, dl
je 0x4225dd
cmp byte [0x769645], 2
jne 0x4225dd
and eax, 0x7ff
and esi, 0x7ff
mov edx, esi
or edx, eax
test edx, 0xfffffc00
jne 0x422643
mov ebp, dword [0x727a48]
mov edx, esi
and edx, 0xfffffff8
mov ebx, eax
shl edx, 5
sar ebx, 2
and ebx, 0xfffffffe
add ebp, edx
xor edx, edx
and esi, 7
mov dl, byte [ebx + ebp]
and eax, 7
lea edx, [esi + edx*8]
mov esi, dword [esp + 0x24]
lea edx, [eax + edx*8]
xor eax, eax
mov al, byte [esi + edx*2]
mov esi, dword [0x737bb4]
mov edx, eax
shr edx, 7
shr esi, 7
and edx, esi
mov dl, byte [edx + 0x726f18]
mov byte [0x737b94], dl
mov bl, byte [ecx]
cmp dl, bl
jbe 0x4226a5
test eax, eax
je 0x4226a5
jmp 0x422695
cmp byte [0x769645], 3
jne 0x4226a5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x6c]
add edx, eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
add ebp, eax
and edx, 7
and ebp, 7
xor eax, eax
lea edx, [ebp + edx*8]
mov al, byte [esi + edx*2]
mov esi, dword [0x737bb4]
mov edx, eax
shr edx, 7
shr esi, 7
and edx, esi
mov dl, byte [edx + 0x726f18]
mov byte [0x737b94], dl
mov bl, byte [ecx]
cmp dl, bl
jbe 0x4226a5
test eax, eax
je 0x4226a5
and al, byte [0x737bb0]
mov byte [edi + ecx], al
mov al, byte [0x737b94]
mov byte [ecx], al
mov ebp, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
add ebp, eax
mov eax, dword [esp + 0x50]
add edx, esi
mov esi, dword [esp + 0x14]
add eax, ebx
inc ecx
cmp ebp, esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], edx
jne 0x4225b7
mov ecx, dword [0x737bac]
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
add eax, 0x18
dec edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
jne 0x4223d7
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
jmp 0x42271a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x74]
inc ecx
add eax, 0x10
dec edx
add edi, 0xc
mov dword [esp + 0x40], edx
mov edx, dword [0x737b58]
add ebx, edx
mov edx, dword [0x737b78]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x44]
add ebx, edx
mov edx, dword [0x737ba8]
cmp ecx, edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], edi
jbe 0x42231b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret