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

Disassembly:
sub esp, 0x60
mov eax, dword [0x727a48]
push ebx
inc eax
push ebp
mov dword [esp + 0x14], eax
mov al, byte [0x7381c6]
push esi
push edi
test al, 1
je 0x42281e
mov al, byte [0x73693f]
test al, al
je 0x422812
xor eax, eax
mov edi, 0x738348
mov dword [esp + 0x10], eax
jmp 0x4227a8
mov eax, dword [esp + 0x10]
mov ebp, eax
mov ebx, eax
xor esi, esi
and ebp, 4
and ebx, 2
and eax, 1
mov dword [esp + 0x68], eax
jmp 0x4227c1
mov eax, dword [esp + 0x68]
mov ecx, esi
mov edx, esi
shr ecx, 3
and ecx, 0x18
or ecx, ebp
push ecx
mov ecx, esi
and ecx, 7
shr edx, 1
shl ecx, 1
and edx, 0x1c
or ecx, eax
or edx, ebx
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 0x4227bd
mov ecx, dword [esp + 0x10]
inc ecx
cmp edi, 0x739348
mov dword [esp + 0x10], ecx
jb 0x4227a4
mov byte [0x73693f], 0
mov dword [0x737b8c], 0x738348
jmp 0x422828
mov dword [0x737b8c], 0x73757c
mov edx, dword [0x737bac]
mov eax, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x48], 0x100
mov eax, dword [edx + eax*4]
mov dword [esp + 0x2c], ebx
test eax, eax
mov dword [esp + 0x44], eax
jne 0x422853
mov dword [esp + 0x44], 1
mov ecx, dword [0x737b58]
mov eax, dword [0x737ba4]
imul ecx, eax
mov esi, dword [esp + 0x74]
mov edx, dword [0x737b88]
add esi, ecx
mov ecx, dword [0x737b78]
imul ecx, eax
add ecx, edx
lea edx, [eax + eax*2]
mov ebp, eax
mov eax, dword [0x737ba8]
lea edi, [edx*4 + 0x735c68]
cmp ebp, eax
mov dword [esp + 0x74], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], ebp
ja 0x422d04
mov ecx, ebp
mov esi, 0x105
shl ecx, 4
sub esi, ebp
add ecx, 0x734cb8
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
jmp 0x4228c5
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dl, byte [0x769644]
mov ax, word [ecx + 2]
shl eax, 0x13
sar eax, 0x13
mov dword [esp + 0x18], eax
xor eax, eax
mov ax, word [ecx]
movsx ecx, word [edi + 8]
shl ecx, 0x13
sar ecx, 0x13
mov dword [esp + 0x14], ecx
movsx ecx, word [edi + 0xa]
shl eax, 0x13
shl ecx, 0x13
sar eax, 0x13
sar ecx, 0x13
test dl, dl
mov dword [esp + 0x6c], ecx
jne 0x422908
mov esi, ebp
mov dl, byte [0x769645]
test dl, dl
jne 0x422928
sub eax, ecx
mov ebp, 0x3ff
cdq
idiv ebp
mov ebp, dword [esp + 0x30]
add esi, edx
mov dword [esp + 0x60], esi
jmp 0x422930
sub eax, ecx
add esi, eax
mov dword [esp + 0x60], esi
movsx eax, word [edi + 2]
mov edx, dword [esp + 0x14]
imul eax, esi
shl edx, 8
add eax, edx
mov dword [esp + 0x5c], eax
movsx eax, word [edi + 6]
imul eax, esi
shl ecx, 8
add eax, ecx
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x422cb8
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
lea ecx, [ecx*4 + 0xa8]
mov dword [esp + 0x64], ecx
mov eax, dword [0x737bac]
mov edx, dword [esp + 0x78]
cmp dword [eax + edx*4], 0
je 0x42299e
mov ebx, dword [ecx + eax - 0x90]
mov ecx, dword [ecx + eax]
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ecx
jbe 0x422c92
jmp 0x4229a2
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x3c]
lea ebp, [eax + ebx*2]
mov al, byte [0x769643]
test al, al
lea esi, [edx + ebx]
je 0x4229e6
lea eax, [ecx - 1]
dec ebx
movsx ecx, word [edi]
movsx edi, word [edi + 4]
mov edx, ecx
mov dword [esp + 0x4c], eax
neg edx
mov dword [esp + 0x24], edx
mov edx, edi
neg edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x28], edx
jmp 0x422a07
mov dword [esp + 0x10], ecx
mov eax, ebx
movsx ecx, word [edi]
movsx edi, word [edi + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edi
mov dl, byte [0x769645]
test dl, dl
jne 0x422a2b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, edx
mov ebx, 0x3ff
cdq
idiv ebx
mov eax, dword [esp + 0x4c]
add edx, eax
jmp 0x422a39
mov ebx, dword [esp + 0x14]
mov edx, eax
sub edx, ebx
mov ebx, dword [esp + 0x18]
add edx, ebx
mov bl, byte [0x769645]
imul ecx, edx
imul edi, edx
test bl, bl
jne 0x422b3a
mov edx, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
cmp eax, edx
je 0x422c92
mov eax, dword [esp + 0x58]
lea edx, [edi + eax]
mov eax, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov ecx, edx
mov ebx, dword [0x727a48]
sar ecx, 8
sar eax, 8
and ecx, 0x3ff
and eax, 0x3ff
mov edx, ecx
mov edi, eax
and edx, 0xfffffff8
and ecx, 7
shl edx, 5
sar edi, 2
and edi, 0xfffffffe
add ebx, edx
xor edx, edx
and eax, 7
mov dl, byte [edi + ebx]
lea ecx, [ecx + edx*8]
lea edx, [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [ecx + edx*2]
mov ecx, dword [0x737bb4]
mov edx, eax
shr edx, 7
shr ecx, 7
and edx, ecx
mov cl, byte [edx + 0x726f18]
mov byte [0x737b94], cl
mov dl, byte [esi]
cmp cl, dl
jbe 0x422afb
test eax, eax
je 0x422afb
mov ecx, dword [0x737bb0]
mov edx, dword [0x737b8c]
and eax, ecx
mov ax, word [edx + eax*2]
mov word [ebp], ax
mov cl, byte [0x737b94]
mov byte [esi], cl
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
add eax, edx
mov edx, dword [esp + 0x54]
add ecx, edi
mov edi, dword [esp + 0x10]
add edx, ebx
add ebp, 2
inc esi
cmp ecx, edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jne 0x422a72
jmp 0x422c92
cmp eax, dword [esp + 0x10]
mov edx, eax
mov dword [esp + 0x54], edx
je 0x422c92
mov eax, dword [esp + 0x58]
add edi, eax
mov eax, dword [esp + 0x5c]
add eax, ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
jmp 0x422b66
mov bl, byte [0x769645]
mov ecx, edi
sar eax, 8
sar ecx, 8
cmp byte [0x73833f], 0
je 0x422b87
cmp bl, 2
jne 0x422b87
and eax, 0x7ff
and ecx, 0x7ff
mov edi, ecx
or edi, eax
test edi, 0xfffffc00
jne 0x422bed
mov ebx, dword [0x727a48]
mov edx, ecx
and edx, 0xfffffff8
mov edi, eax
shl edx, 5
sar edi, 2
and edi, 0xfffffffe
add ebx, edx
xor edx, edx
and ecx, 7
mov dl, byte [edi + ebx]
and eax, 7
lea ecx, [ecx + edx*8]
lea edx, [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov al, byte [ecx + edx*2]
mov ecx, dword [0x737bb4]
mov edx, eax
shr edx, 7
shr ecx, 7
and edx, ecx
mov cl, byte [edx + 0x726f18]
mov byte [0x737b94], cl
mov dl, byte [esi]
cmp cl, dl
jbe 0x422c58
test eax, eax
je 0x422c58
jmp 0x422c3a
cmp bl, 3
jne 0x422c58
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x6c]
add eax, ecx
mov ecx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x1c]
and eax, 7
and edx, 7
lea edx, [edx + eax*8]
xor eax, eax
mov al, byte [ecx + edx*2]
mov ecx, dword [0x737bb4]
mov edx, eax
shr edx, 7
shr ecx, 7
and edx, ecx
mov cl, byte [edx + 0x726f18]
mov byte [0x737b94], cl
mov dl, byte [esi]
cmp cl, dl
jbe 0x422c58
test eax, eax
je 0x422c58
mov ecx, dword [0x737bb0]
mov edx, dword [0x737b8c]
and eax, ecx
mov ax, word [edx + eax*2]
mov word [ebp], ax
mov cl, byte [0x737b94]
mov byte [esi], cl
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
add edx, edi
mov edi, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [esp + 0x10]
add edi, ebx
add ebp, 2
inc esi
cmp edx, ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edi
jne 0x422b60
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
add ecx, 0x18
dec eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
jne 0x422973
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edx, dword [0x737b58]
mov esi, dword [esp + 0x74]
inc ebp
add ecx, 0x10
dec eax
add esi, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], eax
mov eax, dword [0x737b78]
add edi, 0xc
add edx, eax
mov eax, dword [0x737ba8]
cmp ebp, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
jbe 0x4228bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret