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

Disassembly:
sub esp, 0x790
mov eax, dword [0x48b114]
push ebx
mov ebx, dword [esp + 0x798]
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, ebx
mov dword [esp + 0x79c], eax
mov dword [esp + 0x44], ebp
call fcn.0043cfe0
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x7a8]
lea esi, [eax + 1]
jmp 0x422d40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422d40
lea ecx, [esp + 0x28]
sub eax, esi
push ecx
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.0043c8f0
xor eax, eax
mov ecx, 0xc0
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x550]
shl eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x422e1e
mov ebx, dword [esp + 0x7a8]
lea edx, [esp + 0x39c]
mov dword [esp + 0x14], edx
lea edi, [esp + 0x9c]
lea esp, [esp]
movsx eax, byte [ebx]
push eax
call fcn.0045bae2
add esp, 4
test eax, eax
je 0x422dd6
push 2
push ebx
push edi
call fcn.0045af60
mov edx, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x94]
push ecx
push 2
push edi
push edx
call dword [0x47e040]
inc esi
inc ebx
jmp 0x422df8
push 1
push ebx
push edi
call fcn.0045af60
mov ecx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push 1
push edi
push ecx
call dword [0x47e040]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, 4
mov dword [eax - 4], edx
add edi, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
inc esi
inc ebx
cmp esi, eax
jl 0x422da0
mov ebx, dword [esp + 0x7a4]
mov eax, dword [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0043c930
mov ecx, ebx
call fcn.0043c970
mov ebx, eax
mov eax, dword [esp + 0x7a4]
mov ecx, dword [eax + 0x228]
test ecx, ecx
mov dword [esp + 0x6c], ebx
jne 0x422e63
mov ecx, dword [eax + 0x188]
test ecx, ecx
jne 0x422e5a
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x422e6d
mov eax, dword [eax + 0x78]
mov dword [esp + 0x3c], eax
jmp 0x422e6d
mov ecx, dword [eax + 0x1c0]
mov dword [esp + 0x3c], ecx
mov eax, dword [ebp + 0x53c]
mov edx, dword [ebp + 0x3e0]
mov ecx, dword [ebp + 0x540]
mov esi, dword [ebp + 0x550]
mov dword [esp + 0x34], eax
mov eax, 1
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x544]
mov dword [ebp + 0x53c], eax
mov dword [ebp + 0x540], eax
mov dword [ebp + 0x544], eax
mov eax, dword [ebp + 0x554]
lea edi, [eax + eax]
mov dword [esp + 0x84], eax
lea eax, [esi + esi]
test eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x7c], esi
mov ecx, edi
jge 0x422ed1
xor eax, eax
test ecx, ecx
jge 0x422ed7
xor ecx, ecx
mov dword [ebp + 0x550], eax
mov eax, dword [ebp + 0x3dc]
push 0x47f3a2
mov dword [ebp + 0x554], ecx
push eax
mov ecx, ebp
call fcn.004227f0
lea ecx, [edi + 0x10]
add edi, 4
imul ecx, ecx, 0x780
imul edi, edi, 0x780
lea eax, [esi*4 + 4]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x54], edx
mov dword [esp + 0x38], edi
jle 0x42326d
lea esi, [esp + 0x9c]
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], eax
jmp 0x422f51
mov ecx, dword [esp + 0x8c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422f70
sub eax, edi
push eax
mov eax, dword [ebp + 0x3dc]
push esi
push 8
push 8
push eax
call dword [0x47e03c]
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
mov dword [esp + 0x4c], esi
jle 0x42323e
mov dword [esp + 0x24], 0x3c18
jmp 0x422fb0
mov eax, dword [esp + 0x54]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x42321a
mov ecx, dword [esp + 0x2c]
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x24]
lea edi, [ecx + 0x783]
add ecx, 0xfffff880
lea esi, [ecx + edx]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x2c]
mov edx, eax
sub edx, edi
add edx, 0xfffff87d
mov dword [esp + 0x70], edx
mov edx, eax
sub edx, ecx
add edx, 0xfffff883
mov dword [esp + 0x58], edx
mov edx, eax
sub edx, ecx
add edx, 0xfffffffd
mov dword [esp + 0x88], edx
mov edx, eax
sub edx, ecx
add edx, 0x780
mov dword [esp + 0x64], edx
mov edx, eax
sub edx, ecx
add edx, 0x77d
mov dword [esp + 0x48], edx
mov edx, eax
sub edx, ecx
sub edi, ecx
add edx, 3
sub eax, ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x78], eax
jmp 0x423060
mov edi, dword [esp + 0x74]
lea esp, [esp]
mov ecx, dword [esp + 0x64]
movzx edx, byte [esi]
lea eax, [edi + esi]
movzx edi, byte [ecx + esi]
mov ecx, dword [esp + 0x58]
movzx ebp, byte [ecx + esi]
mov ecx, dword [esp + 0x48]
movzx ecx, byte [ecx + esi]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x70]
movzx ecx, byte [eax + ecx]
movzx eax, byte [eax]
and ecx, eax
mov eax, dword [esp + 0x18]
and eax, ebp
or ecx, eax
mov eax, edi
and eax, edx
or ecx, eax
mov eax, dword [esp + 0x60]
movzx eax, byte [eax + esi]
mov ebp, eax
mov eax, dword [esp + 0x88]
movzx eax, byte [eax + esi]
and ebp, eax
or ecx, ebp
mov ebp, dword [esp + 0x78]
movzx ebp, byte [esi + ebp]
and ecx, ebp
add ecx, ebp
mov ebp, dword [esp + 0x60]
movzx ebp, byte [esi + ebp]
add ecx, ebp
mov ebp, dword [esp + 0x44]
add ecx, eax
mov eax, dword [esp + 0x48]
movzx eax, byte [eax + esi]
add ecx, eax
mov eax, dword [esp + 0x58]
movzx eax, byte [eax + esi]
add ecx, eax
mov eax, dword [ebp + 0x54c]
add ecx, edi
add ecx, edx
add eax, dword [esp + 0x90]
imul eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, 0xaaaaaaab
mul dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, edx
mov edx, dword [esp + 0x20]
shr edi, 1
add eax, edx
mov edx, dword [ebp + 0x548]
add edi, eax
add edi, edx
test ecx, ecx
je 0x4231fc
mov edx, dword [esp + 0x5c]
imul ecx, ecx, 0xff
movzx eax, byte [edi + edx]
sar ecx, 3
mov ebp, ecx
mov ecx, 0xff
sub ecx, ebp
imul ecx, eax
mov eax, 0x80808081
imul ecx
movzx eax, word [ebx + edi*2]
add edx, ecx
sar edx, 7
mov ecx, edx
mov dword [esp + 0x80], eax
shr eax, 7
and eax, 0xf8
shr ecx, 0x1f
add ecx, edx
imul eax, ecx
lea edx, [ecx + ebp]
mov dword [esp + 0x18], edx
mov edx, ebp
imul edx, dword [esp + 0x34]
add eax, edx
xor edx, edx
div dword [esp + 0x18]
mov dword [esp + 0x30], ecx
xor edx, edx
mov ebx, dword [esp + 0x6c]
shr eax, 3
shl eax, 5
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
shr eax, 2
and eax, 0xf8
imul eax, ecx
mov ecx, ebp
imul ebp, dword [esp + 0x1c]
imul ecx, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0x18]
div ecx
mov edx, dword [esp + 0x68]
shr eax, 3
or edx, eax
movzx eax, word [ebx + edi*2]
and eax, 0x1f
shl eax, 3
imul eax, dword [esp + 0x30]
shl edx, 5
mov dword [esp + 0x30], edx
add eax, ebp
xor edx, edx
div ecx
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x44]
shr eax, 3
or edx, eax
mov word [ebx + edi*2], dx
mov edx, dword [esp + 0x5c]
mov byte [edi + edx], cl
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x54]
add eax, 3
add esi, 6
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x423058
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
add esi, 0x780
add ecx, 0xf00
cmp esi, eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], ecx
jl 0x422fb0
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x40]
add ecx, 3
dec eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], eax
jne 0x422f46
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp + 0x42c]
test eax, eax
je 0x4232a0
mov ecx, dword [ebp + 0x3dc]
push eax
push ecx
call dword [0x47e06c]
mov edx, dword [ebp + 0x428]
push edx
call dword [0x47e058]
xor eax, eax
mov dword [ebp + 0x428], eax
mov dword [ebp + 0x42c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x53c], eax
mov eax, dword [esp + 0x84]
mov dword [ebp + 0x540], ecx
mov ecx, dword [esp + 0x7a4]
mov dword [ebp + 0x544], edx
mov dword [ebp + 0x550], esi
mov dword [ebp + 0x554], eax
call fcn.0043c9e0
mov ecx, dword [esp + 0x79c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.0045a5f9
add esp, 0x790
ret 8