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

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x28], 0x10
test eax, eax
sete dl
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 0x47a0]
shl edx, 4
add edx, 8
test esi, esi
mov dword [esp + 0x34], edx
je 0x8266e4
mov edx, dword [ecx + 0x47a4]
mov ecx, dword [ecx + 0xbfc]
sub edx, eax
shl edx, 4
sar edx, cl
add edx, 0x10
mov dword [esp + 0x28], edx
mov edx, eax
sub eax, 1
mov ebx, dword [esp + 0x34]
shl edx, 4
sub edx, 8
shl eax, 4
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x28]
add ebx, 0x38
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], ebx
sub edx, 1
add eax, 0xec
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x70]
cmp dword [eax + 0x20f8], 3
sete al
movzx eax, al
lea eax, [eax + eax + 1]
cmp dword [esp + 0x30], eax
jge 0x826d48
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x74]
shl eax, 4
lea edx, [edx + eax + 0xe0]
add eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ebx + ecx*4 + 0x94]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov ebx, dword [ebx + 0xbfc]
test ebx, ebx
je 0x826b45
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
imul eax, dword [esp + 0x20]
add ecx, ecx
mov edx, dword [edx + 0x30]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
sub eax, 4
add eax, edx
test ecx, ecx
mov dword [esp + 0x1c], eax
jle 0x8268dc
mov edx, dword [esp + 0x34]
mov ecx, eax
xor esi, esi
sub ecx, 0x1c
add edx, eax
movzx edi, byte [ecx + 0x1c]
mov ebx, edi
movzx eax, bl
mov ebp, eax
shl ebp, 8
add ebp, eax
movzx eax, bp
mov ebx, eax
shl ebx, 0x10
add ebx, eax
xor eax, eax
test cl, 3
je 0x826825
test cl, 1
mov dword [esp + 0x24], 2
mov dword [esp + 0x18], 0
je 0x826814
mov eax, edi
mov byte [ecx], al
mov eax, 1
mov dword [esp + 0x24], 3
mov dword [esp + 0x18], 1
test cl, 2
je 0x826825
mov eax, dword [esp + 0x18]
mov word [ecx + eax], bp
mov eax, dword [esp + 0x24]
mov dword [ecx + eax], ebx
add eax, 4
cmp eax, 0x18
jle 0x826825
cmp eax, 0x1a
jg 0x82683c
mov word [ecx + eax], bp
add eax, 2
cmp eax, 0x1c
je 0x826846
mov ebx, edi
mov byte [ecx + eax], bl
movzx edi, byte [edx - 1]
mov ebx, edi
movzx eax, bl
mov ebp, eax
shl ebp, 8
add ebp, eax
movzx eax, bp
mov ebx, eax
shl ebx, 0x10
add ebx, eax
xor eax, eax
test dl, 3
je 0x8268a6
test dl, 1
mov dword [esp + 0x24], 2
mov dword [esp + 0x18], 0
je 0x826895
mov eax, edi
mov byte [edx], al
mov eax, 1
mov dword [esp + 0x24], 3
mov dword [esp + 0x18], 1
test dl, 2
je 0x8268a6
mov eax, dword [esp + 0x18]
mov word [edx + eax], bp
mov eax, dword [esp + 0x24]
mov dword [edx + eax], ebx
add eax, 4
cmp eax, 0x18
jle 0x8268a6
cmp eax, 0x1a
jg 0x8268bd
mov word [edx + eax], bp
add eax, 2
cmp eax, 0x1c
je 0x8268c7
mov ebx, edi
mov byte [edx + eax], bl
add esi, 1
add ecx, dword [esp + 0x14]
add edx, dword [esp + 0x14]
cmp esi, dword [esp + 0x28]
jne 0x8267c5
mov edx, dword [esp + 0x38]
test edx, edx
je 0x82691e
mov ebx, dword [esp + 0x1c]
mov edi, 0xffffffe4
mov esi, 0x18
mov ebp, dword [esp + 0x14]
sub edi, dword [esp + 0x14]
add edi, dword [esp + 0x1c]
sub ebx, 0x1c
neg ebp
mov eax, dword [esp + 0x10]
mov dword [esp], edi
add edi, ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
sub esi, 1
jne 0x826903
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x82696b
mov eax, dword [esp + 0x48]
mov esi, 0x18
imul eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
lea ebp, [edx + eax - 0x1c]
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x14]
mov ebx, ebp
mov ebp, dword [esp + 0x14]
lea edi, [edx + eax - 0x1c]
nop
mov ecx, dword [esp + 0x10]
mov dword [esp], edi
add edi, ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memcpy
sub esi, 1
jne 0x826950
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
add ebx, dword [esp + 0x20]
test ebp, ebp
mov dword [esp + 0x24], ebx
jle 0x826aa7
mov edx, dword [esp + 0x34]
mov ecx, ebx
xor esi, esi
sub ecx, 0x1c
add edx, ebx
movzx edi, byte [ecx + 0x1c]
mov ebx, edi
movzx eax, bl
mov ebp, eax
shl ebp, 8
add ebp, eax
movzx eax, bp
mov ebx, eax
shl ebx, 0x10
add ebx, eax
xor eax, eax
test cl, 3
je 0x8269f0
test cl, 1
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0
je 0x8269df
mov eax, edi
mov byte [ecx], al
mov eax, 1
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 1
test cl, 2
je 0x8269f0
mov eax, dword [esp + 0x1c]
mov word [ecx + eax], bp
mov eax, dword [esp + 0x18]
mov dword [ecx + eax], ebx
add eax, 4
cmp eax, 0x18
jle 0x8269f0
cmp eax, 0x1a
jg 0x826a07
mov word [ecx + eax], bp
add eax, 2
cmp eax, 0x1c
je 0x826a11
mov ebx, edi
mov byte [ecx + eax], bl
movzx edi, byte [edx - 1]
mov ebx, edi
movzx eax, bl
mov ebp, eax
shl ebp, 8
add ebp, eax
movzx eax, bp
mov ebx, eax
shl ebx, 0x10
add ebx, eax
xor eax, eax
test dl, 3
je 0x826a71
test dl, 1
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0
je 0x826a60
mov eax, edi
mov byte [edx], al
mov eax, 1
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 1
test dl, 2
je 0x826a71
mov eax, dword [esp + 0x1c]
mov word [edx + eax], bp
mov eax, dword [esp + 0x18]
mov dword [edx + eax], ebx
add eax, 4
cmp eax, 0x18
jle 0x826a71
cmp eax, 0x1a
jg 0x826a88
mov word [edx + eax], bp
add eax, 2
cmp eax, 0x1c
je 0x826a92
mov ebx, edi
mov byte [edx + eax], bl
add esi, 1
add ecx, dword [esp + 0x14]
add edx, dword [esp + 0x14]
cmp esi, dword [esp + 0x28]
jne 0x826990
mov edi, dword [esp + 0x38]
test edi, edi
je 0x826aeb
mov ebx, dword [esp + 0x24]
mov edi, 0xffffffe4
mov esi, 0x18
mov ebp, dword [esp + 0x14]
sub edi, dword [esp + 0x14]
add edi, dword [esp + 0x24]
sub ebx, 0x1c
neg ebp
nop
mov eax, dword [esp + 0x10]
mov dword [esp], edi
add edi, ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
sub esi, 1
jne 0x826ad0
mov esi, dword [esp + 0x7c]
test esi, esi
je 0x826b3b
mov eax, dword [esp + 0x48]
mov esi, 0x18
imul eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea ebp, [ecx + eax - 0x1c]
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x14]
mov ebx, ebp
mov ebp, dword [esp + 0x14]
lea edi, [ecx + eax - 0x1c]
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov dword [esp], edi
add edi, ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
sub esi, 1
jne 0x826b20
mov edx, dword [esp + 0x70]
mov ecx, dword [edx + 0xbfc]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
imul eax, dword [esp + 0x20]
mov ebx, dword [ebx]
sub eax, 4
add eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
shl eax, cl
test eax, eax
mov dword [esp + 0x14], eax
jle 0x826c97
mov ecx, dword [esp + 0x24]
xor esi, esi
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x34]
sub ecx, 0x1c
movzx edi, byte [ecx + 0x1c]
mov ebx, edi
movzx eax, bl
mov ebp, eax
shl ebp, 8
add ebp, eax
movzx eax, bp
mov ebx, eax
shl ebx, 0x10
add ebx, eax
xor eax, eax
test cl, 3
je 0x826be0
test cl, 1
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0
je 0x826bcf
mov eax, edi
mov byte [ecx], al
mov eax, 1
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 1
test cl, 2
je 0x826be0
mov eax, dword [esp + 0x1c]
mov word [ecx + eax], bp
mov eax, dword [esp + 0x18]
mov dword [ecx + eax], ebx
add eax, 4
cmp eax, 0x18
jle 0x826be0
cmp eax, 0x1a
jg 0x826bf7
mov word [ecx + eax], bp
add eax, 2
cmp eax, 0x1c
je 0x826c01
mov ebx, edi
mov byte [ecx + eax], bl
movzx edi, byte [edx - 1]
mov ebx, edi
movzx eax, bl
mov ebp, eax
shl ebp, 8
add ebp, eax
movzx eax, bp
mov ebx, eax
shl ebx, 0x10
add ebx, eax
xor eax, eax
test dl, 3
je 0x826c61
test dl, 1
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0
je 0x826c50
mov eax, edi
mov byte [edx], al
mov eax, 1
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 1
test dl, 2
je 0x826c61
mov eax, dword [esp + 0x1c]
mov word [edx + eax], bp
mov eax, dword [esp + 0x18]
mov dword [edx + eax], ebx
add eax, 4
cmp eax, 0x18
jle 0x826c61
cmp eax, 0x1a
jg 0x826c78
mov word [edx + eax], bp
add eax, 2
cmp eax, 0x1c
je 0x826c82
mov ebx, edi
mov byte [edx + eax], bl
add esi, 1
add ecx, dword [esp + 0x20]
add edx, dword [esp + 0x20]
cmp esi, dword [esp + 0x14]
jne 0x826b80
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x826cdb
mov ebx, dword [esp + 0x24]
mov edi, 0xffffffe4
mov esi, 0x18
mov ebp, dword [esp + 0x20]
sub edi, dword [esp + 0x20]
add edi, dword [esp + 0x24]
sub ebx, 0x1c
neg ebp
nop
mov eax, dword [esp + 0x10]
mov dword [esp], edi
add edi, ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
sub esi, 1
jne 0x826cc0
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x826d2b
mov eax, dword [esp + 0x14]
mov edi, 0x18
mov edx, dword [esp + 0x24]
sub eax, 1
imul eax, dword [esp + 0x20]
lea esi, [edx + eax - 0x1c]
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x20]
mov ebx, esi
mov esi, dword [esp + 0x20]
lea ebp, [edx + eax - 0x1c]
nop
mov ecx, dword [esp + 0x10]
mov dword [esp], ebp
add ebp, esi
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_memcpy
sub edi, 1
jne 0x826d10
add dword [esp + 0x2c], 4
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x2c], ebx
jne 0x826762
add dword [esp + 0x30], 1
jmp 0x826725
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret