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

Disassembly:
sub esp, 0x70
mov eax, dword [esp + 0x74]
mov cl, byte [esp + 0x80]
sub eax, 4
mov byte [esp + 3], cl
mov ecx, dword [0x727a48]
push ebp
neg eax
sbb eax, eax
xor edx, edx
mov dx, word [0x768bc6]
and eax, 0x20
mov dword [esp + 0x68], eax
mov al, byte [esp + 0x80]
lea ebp, [ecx + edx*2]
mov edx, dword [0x768bd0]
mov byte [esp + 6], al
mov eax, edx
and eax, 1
push esi
test ax, ax
push edi
mov dword [0x735c30], 0
mov dword [esp + 0x78], ebp
je 0x420f3a
lea esi, [ebp + 0x800]
mov dword [esp + 0x28], esi
jmp 0x420f3e
mov dword [esp + 0x28], ebp
test dl, 2
je 0x420f53
mov edx, dword [esp + 0x28]
add edx, 0x800
mov dword [esp + 0x14], edx
jmp 0x420f57
mov dword [esp + 0x14], ebp
test ax, ax
je 0x420f6b
mov eax, dword [esp + 0x14]
add eax, 0x800
mov dword [esp + 0x4c], eax
jmp 0x420f73
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov esi, dword [esp + 0x84]
xor edx, edx
lea eax, [esi + esi*2]
shl eax, 2
mov dx, word [eax + 0x768bae]
mov ax, word [eax + 0x768bb8]
lea edx, [ecx + edx*2]
mov ecx, eax
and ecx, 1
mov dword [esp + 0x74], edx
test cx, cx
je 0x420fad
lea edi, [edx + 0x800]
mov dword [esp + 0x30], edi
jmp 0x420fb1
mov dword [esp + 0x30], edx
test al, 2
je 0x420fc4
mov eax, dword [esp + 0x30]
add eax, 0x800
mov dword [esp + 0x2c], eax
jmp 0x420fca
mov dword [esp + 0x2c], edx
mov eax, edx
test cx, cx
je 0x420fd4
add eax, 0x800
mov dword [esp + 0x58], eax
lea ecx, [esi + 0xd]
mov eax, 1
shl eax, cl
mov dword [esp + 0x50], eax
mov eax, dword [0x735c18]
cmp eax, 0x10
jne 0x421002
mov dword [esp + 0x34], 0x3ff
mov dword [esp + 0x54], 4
jmp 0x421012
mov dword [esp + 0x34], 0x1ff
mov dword [esp + 0x54], 3
mov edi, dword [0x737ba4]
mov eax, dword [0x737ba8]
cmp edi, eax
mov dword [esp + 0x24], edi
ja 0x421410
mov ecx, edi
lea edx, [esi + edi*4]
shl ecx, 4
push ebx
add ecx, 0x734cc0
lea ebx, [edx*4 + 0x734cba]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x4c], ebx
xor eax, eax
mov ax, word [ecx + 2]
mov dword [esp + 0x70], eax
xor eax, eax
mov ax, word [ecx]
shr eax, 3
test al, 0x20
je 0x42106b
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x50]
jmp 0x421073
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
and eax, 0x1f
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
shl eax, 6
add edx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [0x737bac]
mov eax, dword [edx + esi*4]
test eax, eax
jne 0x4210a5
mov eax, 1
jmp 0x4210ab
jle 0x4213ef
lea edi, [esi*4 + 0xa8]
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], edi
cmp dword [edx + esi*4], 0
jne 0x4210d4
xor eax, eax
mov edx, 0x100
mov dword [esp + 0x90], eax
mov dword [esp + 0x48], edx
jmp 0x4210f3
mov eax, dword [edi + edx - 0x90]
mov ecx, dword [edi + edx]
cmp ecx, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x48], ecx
jbe 0x4213cd
mov edx, ecx
mov ebp, dword [0x737b80]
mov ecx, dword [0x737b78]
imul ecx, dword [esp + 0x28]
imul ebp, eax
add ebp, ecx
mov ecx, edx
test eax, eax
sete byte [esp + 0x8c]
sub ecx, eax
mov esi, 8
mov dword [esp + 0x60], ecx
mov ecx, eax
and ecx, 7
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], esi
je 0x421139
sub esi, ecx
mov dword [esp + 0x14], esi
cmp eax, edx
jae 0x4213c0
jmp 0x42114e
mov eax, dword [esp + 0x90]
mov ebx, dword [esp + 0x4c]
mov cl, byte [esp + 0x8c]
test cl, cl
je 0x421171
xor eax, eax
xor edx, edx
mov ax, word [ebx - 2]
mov dx, word [ebx]
mov byte [esp + 0x8c], 0
jmp 0x4211fd
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
shr ecx, 3
lea eax, [eax + edx - 1]
shr eax, 3
and eax, ecx
cmp eax, 0x1f
jbe 0x421196
mov edx, dword [esp + 0x1c]
and eax, 0x1f
lea eax, [edx + eax*2]
jmp 0x42119d
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax*2]
mov edx, dword [esp + 0x84]
xor ecx, ecx
mov cx, word [eax]
cmp edx, 4
jne 0x4211cb
mov esi, dword [esp + 0x54]
xor eax, eax
mov ax, word [ebx - 2]
xor edx, edx
mov dx, word [ebx]
test esi, ecx
je 0x4211fd
test ch, 0x80
je 0x4211ec
lea eax, [ecx + 1]
jmp 0x4211fd
mov esi, dword [esp + 0x74]
xor edx, edx
mov dx, word [eax + esi*2]
mov esi, dword [esp + 0x54]
test esi, edx
je 0x4211e2
lea eax, [edx + 1]
jmp 0x4211e8
xor eax, eax
mov ax, word [ebx - 2]
test esi, ecx
je 0x4211f0
mov edx, ecx
jmp 0x4211fd
mov ecx, dword [0x738338]
xor edx, edx
mov dx, word [ebx]
sub edx, ecx
mov ecx, dword [esp + 0x28]
lea esi, [eax + ecx]
mov ecx, dword [esp + 0x58]
mov eax, esi
shr eax, cl
mov ecx, esi
lea ebx, [esi*8]
and ecx, 0xf
and ebx, 0x38
cmp cl, 7
jbe 0x421232
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], 0
jmp 0x421242
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x10
test al, 0x20
je 0x421250
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
jmp 0x421258
mov esi, dword [esp + 0x78]
mov ecx, dword [esp + 0x34]
and eax, 0x1f
shl eax, 6
add esi, eax
add ecx, eax
mov eax, dword [esp + 0x90]
lea edi, [edx + eax]
mov eax, dword [esp + 0x38]
mov edx, dword [0x735c18]
and edi, eax
mov eax, edi
shr eax, 3
cmp edx, 8
jne 0x42129a
cmp eax, 0x1f
jbe 0x421291
mov edx, eax
and edx, 0x1f
lea ecx, [ecx + edx*2]
jmp 0x4212b0
lea edx, [esi + eax*2]
mov dword [esp + 0x24], edx
jmp 0x4212b4
cmp eax, 0x3f
mov edx, eax
jbe 0x4212ab
shr edx, 1
and edx, 0x1f
lea ecx, [ecx + edx*2]
jmp 0x4212b0
shr edx, 1
lea ecx, [esi + edx*2]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x60]
jbe 0x4212d1
mov ecx, dword [esp + 0x60]
sub ecx, esi
mov dword [esp + 0x14], ecx
mov edx, ecx
and edi, 7
mov esi, 8
sub esi, edi
cmp esi, edx
jbe 0x4212e1
mov esi, edx
mov edx, edi
xor ecx, ecx
imul edx, dword [0x737b80]
sub ebp, edx
mov edx, dword [esp + 0x24]
mov cx, word [edx]
mov edx, ecx
shr edx, 0xd
and edx, 1
mov dl, byte [esp + edx + 0x12]
mov byte [0x737b95], dl
mov byte [0x737b94], dl
cmp dword [0x735c18], 8
jne 0x42131f
push 1
push ebx
push esi
push edi
push ebp
push ecx
jmp 0x421376
test ch, 0xc0
jne 0x421335
mov edx, dword [esp + 0x3c]
push 1
push ebx
push esi
and eax, 1
push edi
push ebp
add eax, ecx
jmp 0x421373
test ch, 0x40
je 0x421364
push 1
push ebx
push esi
push edi
test ch, 0x80
push ebp
je 0x421355
and eax, 1
sub ecx, eax
mov eax, dword [esp + 0x54]
lea ecx, [ecx + eax + 1]
push ecx
jmp 0x421376
mov edx, dword [esp + 0x50]
and eax, 1
sub ecx, eax
lea eax, [ecx + edx + 1]
jmp 0x421375
mov edx, dword [esp + 0x40]
push 1
push ebx
push esi
and eax, 1
push edi
push ebp
add eax, ecx
add eax, edx
push eax
call dword [0x7c5f24]
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x5c]
add eax, esi
add ebx, esi
add esi, edi
mov ecx, dword [esp + 0x60]
imul esi, dword [0x737b80]
add esp, 0x18
add ebp, esi
cmp eax, ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], 8
jb 0x421143
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x4c]
mov edx, dword [0x737bac]
mov esi, dword [esp + 0x88]
mov eax, dword [esp + 0x68]
add edi, 0x18
dec eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], eax
jne 0x4210ba
mov ebp, dword [esp + 0x7c]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov eax, dword [0x737ba8]
inc edi
add ecx, 0x10
add ebx, 0x10
cmp edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x4c], ebx
jbe 0x421047
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x70
ret