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

Disassembly:
sub esp, 0x50
mov eax, dword [0x5ba5d0]
mov ecx, dword [0x5ba5d4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x44], ecx
push ebp
mov cx, word [eax + 0xe]
push esi
mov esi, dword [esp + 0x60]
mov eax, ecx
and eax, 0xffff
mov edx, dword [0x5ba5d8]
imul eax, esi
add eax, 0x1f
mov dword [esp + 0x50], edx
cdq
and edx, 0x1f
push edi
add eax, edx
xor ebp, ebp
sar eax, 5
shl eax, 2
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, 8
mov dword [esp + 0xc], edi
mov dword [esp + 0x3c], esi
jne 0x42642b
lea eax, [esi*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [esp + 0x3c], eax
cmp cx, 4
je 0x426437
cmp cx, 8
jne 0x426452
lea ecx, [esi + esi*2 + 9]
push ecx
call fcn.004d5aaa
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x426794
mov edi, eax
mov ecx, dword [esp + 0x68]
test ecx, ecx
jbe 0x426787
mov eax, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ecx
jmp 0x426485
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
test edi, edi
je 0x4264a6
mov edx, dword [esp + 0x8c]
push edx
push edi
push eax
call fcn.004259d0
mov ecx, edi
add esp, 0xc
mov dword [esp + 0x88], ecx
jmp 0x4264af
mov dword [esp + 0x88], eax
mov ecx, eax
test ebp, ebp
mov dword [esp + 0x70], ebx
je 0x4264f9
lea eax, [esi + ecx]
lea edx, [ebx + esi - 1]
mov dword [esp + 0x70], edx
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + esi*2 - 3]
lea eax, [esi + esi*2 + 3]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x6c], 0xfffffffd
mov dword [esp + 0x28], 0
lea ebp, [ecx + eax*2]
mov ecx, dword [esp + 0x88]
jmp 0x426512
mov ebp, dword [esp + 0x7c]
mov eax, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 3
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
xor edx, edx
xor ebx, ebx
xor edi, edi
xor esi, esi
cmp eax, edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
jbe 0x42673c
mov dword [esp + 0x3c], eax
jmp 0x426546
xor edx, edx
cmp dword [esp + 0x84], edx
je 0x4265ed
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x2c], ebx
xor ebx, ebx
movsx eax, word [ebp + edx*2]
mov bl, byte [ecx + 1]
lea edx, [eax + esi + 8]
xor eax, eax
mov al, byte [ecx]
mov esi, eax
mov eax, dword [esp + 0x78]
sar edx, 4
add esi, dword [eax + edx*4]
mov edx, dword [esp + 0x6c]
movsx edx, word [ebp + edx*2 + 2]
lea edx, [edx + edi + 8]
mov edi, ebx
sar edx, 4
mov ebx, dword [eax + edx*4]
mov edx, dword [esp + 0x6c]
add edi, ebx
mov ebx, dword [esp + 0x2c]
movsx edx, word [ebp + edx*2 + 4]
lea edx, [edx + ebx + 8]
xor ebx, ebx
mov bl, byte [ecx + 2]
sar edx, 4
add ebx, dword [eax + edx*4]
test esi, esi
jge 0x4265b4
xor esi, esi
jmp 0x4265c1
cmp esi, 0xff
jle 0x4265c1
mov esi, 0xff
test edi, edi
jge 0x4265c9
xor edi, edi
jmp 0x4265d6
cmp edi, 0xff
jle 0x4265d6
mov edi, 0xff
test ebx, ebx
jge 0x4265de
xor ebx, ebx
jmp 0x4265ff
cmp ebx, 0xff
jle 0x4265ff
mov ebx, 0xff
jmp 0x4265ff
xor eax, eax
xor edx, edx
mov al, byte [ecx]
mov dl, byte [ecx + 1]
xor ebx, ebx
mov esi, eax
mov bl, byte [ecx + 2]
mov edi, edx
mov edx, ebx
mov eax, esi
sar edx, 1
sar eax, 1
mov dword [esp + 0x2c], edx
mov ecx, edi
mov edx, eax
sar ecx, 1
shl edx, 7
add edx, ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x2c]
shl edx, 7
add edx, ecx
mov ecx, dword [esp + 0x80]
cmp word [ecx + edx*2], 0
lea edx, [ecx + edx*2]
mov dword [esp + 0x4c], edx
jne 0x426655
mov edx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x50]
push edx
push eax
push ecx
call fcn.004267c0
mov edx, dword [esp + 0x60]
add esp, 0x14
mov ecx, dword [esp + 0x88]
xor eax, eax
mov ax, word [edx]
mov edx, dword [esp + 0x70]
dec eax
cmp dword [esp + 0x84], 0
mov byte [edx], al
je 0x42679b
mov edx, dword [esp + 0x50]
xor ecx, ecx
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x54]
sub esi, ecx
xor ecx, ecx
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x58]
sub edi, ecx
xor ecx, ecx
mov cl, byte [eax + edx]
mov edx, dword [esp + 0x14]
sub ebx, ecx
lea eax, [esi + esi]
mov ecx, esi
add esi, eax
add edx, esi
add esi, eax
mov word [ebp], dx
mov edx, dword [esp + 0x30]
add edx, esi
add esi, eax
mov dword [esp + 0x30], ecx
lea eax, [edi + edi]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
mov ecx, edi
add edi, eax
add edx, edi
add edi, eax
mov word [ebp + 2], dx
mov edx, dword [esp + 0x34]
add edx, edi
add edi, eax
mov dword [esp + 0x34], ecx
lea eax, [ebx + ebx]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
mov ecx, ebx
add ebx, eax
add edx, ebx
add ebx, eax
mov word [ebp + 4], dx
mov edx, dword [esp + 0x38]
add edx, ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x88]
add ebx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x70]
add ecx, eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x64]
add edx, ecx
mov ecx, dword [esp + 0x88]
lea ebp, [ebp + eax*2]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
dec eax
mov dword [esp + 0x3c], eax
jne 0x426544
mov ax, word [esp + 0x18]
mov cx, word [esp + 0x1c]
mov dx, word [esp + 0x14]
mov esi, dword [esp + 0x20]
mov word [ebp + 2], ax
mov eax, dword [esp + 0x40]
mov word [ebp + 4], cx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov word [ebp], dx
mov edx, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x44]
add esi, edx
dec eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], eax
jne 0x426475
pop ebx
test edi, edi
je 0x426794
push edi
call fcn.004d59c1
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x50
ret
mov eax, dword [esp + 0x6c]
add ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x88], ecx
add edx, eax
jmp 0x426729