Function at 0x4a91e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b0
push esi
mov dword [ebp - 0x8c], edx
mov esi, ecx
lea edx, [ebp - 0xb0]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x94], 0xff
call fcn.004a8cd0
test eax, eax
je 0x4a923c
mov eax, dword [esi + 4]
mov dword [ebp - 0x64], eax
cdq
xor eax, edx
sub eax, edx
mov dword [esi + 4], eax
cmp eax, 0x1000000
jbe 0x4a9243
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.too_large
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0x1000000
ja 0x4a922a
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x94]
push ebx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x38], edx
push edi
mov edi, dword [ebp - 0xac]
mov dword [ebp - 0x48], edi
cmp eax, 0xc
jne 0x4a92bf
mov ebx, dword [ebp - 0xb0]
mov dword [ebp - 0x40], ebx
cmp ebx, 0x18
jge 0x4a92dd
mov ecx, edi
mov eax, 0x55555556
sub ecx, edx
sub ecx, 0x18
imul ecx
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jmp 0x4a92d6
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0x40], ecx
cmp ecx, 0x10
jge 0x4a92dd
mov ebx, edi
sub ebx, edx
sub ebx, eax
sar ebx, 2
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x4a9356
mov ecx, dword [esi + 0xa8]
sub ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xac]
add ecx, edx
lea eax, [ecx - 1]
cmp eax, 0x3ff
ja 0x4aa56f
cmp edi, ecx
jl 0x4aa554
mov eax, edi
sub eax, ecx
cmp eax, 0x400
jg 0x4aa554
test eax, eax
je 0x4a9356
jns 0x4a9324
mov eax, dword [esi + 0xb0]
jmp 0x4a9350
cmp dword [esi + 0x10], 0
je 0x4a934e
mov ebx, dword [esi + 0xb0]
mov ecx, ebx
sub ecx, edx
cmp ecx, eax
jge 0x4a934e
sub eax, ecx
mov dword [esi + 0xac], ebx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
jmp 0x4a9356
add eax, edx
mov dword [esi + 0xac], eax
cmp dword [ebp - 0x40], 0x18
mov ecx, dword [ebp - 0xc]
jne 0x4a936e
cmp ecx, 0xff000000
jne 0x4a936e
mov eax, 3
jmp 0x4a9378
xor eax, eax
test ecx, ecx
setne al
add eax, 3
mov dword [esi + 8], eax
mov ecx, dword [esi]
mov ebx, dword [esi + 4]
test ecx, ecx
js 0x4aa539
je 0x4a93aa
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x4aa539
lea eax, [ecx*4]
test eax, eax
js 0x4aa539
test ebx, ebx
js 0x4aa539
je 0x4a93cb
mov eax, 0x7fffffff
cdq
idiv ebx
lea edx, [ecx*4]
cmp edx, eax
jg 0x4aa539
test ecx, ecx
jne 0x4a93db
lea eax, [ecx*4]
mov dword [ebp - 0x30], eax
jmp 0x4a93fe
mov eax, 0x7fffffff
cdq
idiv ecx
cmp eax, 4
jl 0x4aa51e
lea edx, [ecx*4]
test edx, edx
js 0x4aa51e
mov dword [ebp - 0x30], edx
test ebx, ebx
je 0x4a9413
mov eax, 0x7fffffff
cdq
idiv ebx
cmp dword [ebp - 0x30], eax
jg 0x4aa51e
imul ebx, ecx
lea eax, [ebx*4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x34], ebx
test ebx, ebx
je 0x4aa51e
cmp dword [ebp - 0x40], 0x10
jge 0x4a9c15
mov eax, dword [ebp - 0x24]
xor edi, edi
test eax, eax
je 0x4a9bf0
cmp eax, 0x100
jg 0x4a9bf0
mov dword [ebp - 0x18], edi
lea ebx, [esi + 0xac]
test eax, eax
jle 0x4a96ac
lea edi, [esi + 0x20]
nop word [eax + eax]
mov eax, dword [ebx]
mov ecx, dword [esi + 0xb0]
cmp eax, ecx
jae 0x4a9484
mov dl, byte [eax]
inc eax
mov byte [ebp - 1], dl
jmp 0x4a94d9
cmp dword [esi + 0x20], 0
lea edi, [esi + 0x20]
je 0x4a954f
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
test eax, eax
jne 0x4a94c5
lea ecx, [esi + 0x29]
mov dword [edi], eax
mov dword [esi + 0xb0], ecx
mov byte [esi + 0x28], al
jmp 0x4a94d0
lea ecx, [esi + 0x28]
add ecx, eax
mov dword [esi + 0xb0], ecx
mov al, byte [esi + 0x28]
mov byte [ebp - 1], al
lea eax, [esi + 0x29]
mov dword [ebp - 0x3c], ebx
mov edx, ecx
mov esi, dword [ebp - 0x3c]
mov ebx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], edi
mov dword [esi], ebx
mov esi, dword [ebp - 0x18]
mov bl, byte [ebp - 1]
shl esi, 2
mov dword [ebp - 0xc], esi
mov byte [ebp + esi - 0x4ae], bl
mov esi, dword [ebp - 0x50]
lea ebx, [esi + 0xac]
cmp eax, ecx
jb 0x4a9576
mov ecx, dword [ebp - 0xc]
cmp dword [edi], 0
je 0x4a95a6
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
lea edx, [esi + 0x28]
sub ecx, dword [esi + 0xb4]
add esp, 0xc
add dword [esi + 0xa8], ecx
mov dword [ebx], edx
test eax, eax
jne 0x4a9567
lea ecx, [esi + 0x29]
mov dword [edi], eax
mov dword [esi + 0xb0], ecx
mov byte [edx], al
jmp 0x4a9572
mov edx, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp - 0x18]
shl ecx, 2
mov dword [ebp - 0xc], ecx
mov byte [ebp + ecx - 0x4ae], 0
jmp 0x4a950e
lea ecx, [esi + 0x28]
add ecx, eax
mov dword [esi + 0xb0], ecx
mov eax, dword [ebx]
mov edx, ecx
mov bl, byte [eax]
inc eax
mov dword [esi + 0xac], eax
mov esi, dword [ebp - 0xc]
mov byte [ebp - 1], bl
mov byte [ebp + esi - 0x4af], bl
mov esi, dword [ebp - 0x50]
lea ebx, [esi + 0xac]
cmp eax, ecx
jae 0x4a95ae
mov cl, byte [eax]
lea edi, [esi + 0x20]
inc eax
mov byte [ebp - 1], cl
mov dword [ebx], eax
jmp 0x4a9618
mov byte [ebp + ecx - 0x4af], 0
cmp dword [edi], 0
je 0x4a9614
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [ebx], ecx
test eax, eax
jne 0x4a95fd
mov eax, dword [ebp - 0x1c]
lea edx, [esi + 0x29]
mov dword [esi + 0xb0], edx
mov dword [eax], 0
mov byte [ecx], 0
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov dword [ebx], eax
jmp 0x4a9618
lea edx, [esi + 0x28]
add edx, eax
mov eax, dword [ebx]
mov dword [esi + 0xb0], edx
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov dword [ebx], eax
jmp 0x4a9618
mov byte [ebp - 1], 0
cmp dword [ebp - 8], 0xc
mov ecx, dword [ebp - 0xc]
mov bl, byte [ebp - 1]
mov byte [ebp + ecx - 0x4b0], bl
lea ebx, [esi + 0xac]
je 0x4a968f
cmp eax, edx
jae 0x4a963a
inc eax
mov dword [ebx], eax
jmp 0x4a968f
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x4a968f
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [ebx], ecx
test eax, eax
jne 0x4a9682
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
lea eax, [esi + 0x29]
mov dword [esi + 0xb0], eax
mov byte [ecx], 0
jmp 0x4a968d
add eax, 0x28
add eax, esi
mov dword [esi + 0xb0], eax
inc dword [ebx]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
inc edx
mov dword [ebp - 0x18], edx
mov byte [ebp + eax - 0x4ad], 0xff
cmp edx, dword [ebp - 0x24]
jl 0x4a9470
xor edi, edi
mov ecx, dword [ebp - 0x48]
xor eax, eax
cmp dword [ebp - 8], 0xc
setne al
add eax, 3
imul eax, dword [ebp - 0x24]
sub ecx, eax
sub ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 8]
je 0x4a96ff
test ecx, ecx
jns 0x4a96d7
mov eax, dword [esi + 0xb0]
mov dword [ebx], eax
jmp 0x4a96ff
cmp dword [esi + 0x10], 0
je 0x4a96fd
mov edx, dword [esi + 0xb0]
mov eax, edx
sub eax, dword [ebx]
cmp eax, ecx
jge 0x4a96fd
sub ecx, eax
mov dword [ebx], edx
mov eax, dword [esi + 0x14]
push ecx
push dword [esi + 0x1c]
call eax
add esp, 8
jmp 0x4a96ff
add dword [ebx], ecx
mov edx, dword [ebp - 0x40]
cmp edx, 1
jne 0x4a9711
mov eax, dword [esi]
add eax, 7
shr eax, 3
jmp 0x4a9728
cmp edx, 4
jne 0x4a971d
mov eax, dword [esi]
inc eax
shr eax, 1
jmp 0x4a9728
cmp edx, 8
jne 0x4a9bc9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
neg eax
and eax, 3
cmp edx, 1
mov dword [ebp - 0x44], eax
mov edx, ecx
jne 0x4a9971
mov dword [ebp - 0x3c], 0
test ecx, ecx
jle 0x4a9bc1
nop dword [eax]
mov ecx, dword [ebx]
mov dword [ebp - 0x1c], 7
cmp ecx, dword [esi + 0xb0]
jae 0x4a9768
mov dl, byte [ecx]
inc ecx
mov dword [ebx], ecx
jmp 0x4a97c9
cmp dword [esi + 0x20], 0
je 0x4a97c7
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [ebx], ecx
test eax, eax
jne 0x4a97b1
mov dword [esi + 0x20], eax
lea eax, [esi + 0x29]
mov dword [esi + 0xb0], eax
mov byte [ecx], 0
mov eax, dword [ebx]
mov dl, byte [eax]
lea ecx, [eax + 1]
mov dword [ebx], ecx
jmp 0x4a97c9
add eax, 0x28
add eax, esi
mov dword [esi + 0xb0], eax
mov eax, dword [ebx]
mov dl, byte [eax]
lea ecx, [eax + 1]
mov dword [ebx], ecx
jmp 0x4a97c9
xor dl, dl
movzx eax, dl
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x4a9920
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
nop dword [eax]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
and eax, 1
lea ecx, [eax*4]
movzx eax, byte [ebp + ecx - 0x4b0]
mov byte [edi + edx], al
movzx eax, byte [ebp + ecx - 0x4af]
mov byte [edi + edx + 1], al
movzx eax, byte [ebp + ecx - 0x4ae]
mov ecx, dword [ebp - 0x10]
mov byte [edi + edx + 2], al
mov eax, dword [ebp - 0x2c]
inc eax
mov byte [edi + edx + 3], 0xff
add edi, 4
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0xc]
je 0x4a9920
sub dword [ebp - 0x1c], 1
jns 0x4a9909
mov eax, ecx
mov dword [ebp - 0x1c], 7
cmp eax, dword [esi + 0xb0]
jae 0x4a9877
mov cl, byte [eax]
mov byte [ebp - 1], cl
lea ecx, [eax + 1]
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
mov dword [ebx], ecx
jmp 0x4a990e
cmp dword [esi + 0x20], 0
je 0x4a98f4
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [ebx], ecx
test eax, eax
jne 0x4a98cf
mov dword [esi + 0x20], eax
lea eax, [esi + 0x29]
mov dword [esi + 0xb0], eax
mov byte [ecx], 0
mov eax, dword [ebx]
mov cl, byte [eax]
mov byte [ebp - 1], cl
lea ecx, [eax + 1]
movzx edx, byte [ebp - 1]
mov dword [ebx], ecx
mov eax, dword [esi]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
jmp 0x4a990e
add eax, 0x28
add eax, esi
mov dword [esi + 0xb0], eax
mov eax, dword [ebx]
mov cl, byte [eax]
mov byte [ebp - 1], cl
lea ecx, [eax + 1]
movzx edx, byte [ebp - 1]
mov dword [ebx], ecx
mov eax, dword [esi]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
jmp 0x4a990e
mov byte [ebp - 1], 0
mov ecx, eax
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x34]
jmp 0x4a990e
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x2c], eax
jl 0x4a97f0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4a9955
cmp dword [esi + 0x10], 0
je 0x4a9951
mov edx, dword [esi + 0xb0]
sub edx, ecx
cmp edx, eax
jge 0x4a9951
mov ecx, dword [esi + 0xb0]
sub eax, edx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov dword [ebx], ecx
call eax
add esp, 8
jmp 0x4a9955
add eax, ecx
mov dword [ebx], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [esi + 4]
inc eax
mov dword [ebp - 0x3c], eax
mov edx, ecx
cmp eax, ecx
jl 0x4a9750
mov ebx, dword [ebp - 0x34]
jmp 0x4aa44a
mov dword [ebp - 8], 0
test ecx, ecx
jle 0x4a9bc1
cmp dword [esi], 0
mov dword [ebp - 0x2c], 0
jle 0x4a9b81
mov ecx, dword [ebx]
lea eax, [esi + 0x20]
mov dword [ebp - 0xc], eax
cmp ecx, dword [esi + 0xb0]
jae 0x4a99a7
mov dl, byte [ecx]
inc ecx
mov dword [ebx], ecx
jmp 0x4a9a10
cmp dword [eax], 0
je 0x4a9a0b
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [ebx], ecx
test eax, eax
jne 0x4a99f5
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
lea eax, [esi + 0x29]
mov dword [esi + 0xb0], eax
mov byte [ecx], 0
mov eax, dword [ebx]
mov dl, byte [eax]
lea ecx, [eax + 1]
mov dword [ebx], ecx
jmp 0x4a9a10
add eax, 0x28
add eax, esi
mov dword [esi + 0xb0], eax
mov eax, dword [ebx]
mov dl, byte [eax]
lea ecx, [eax + 1]
mov dword [ebx], ecx
jmp 0x4a9a10
xor dl, dl
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x40], 4
movzx eax, dl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], 0
jne 0x4a9a31
mov edx, eax
and edx, 0xf
shr eax, 4
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp + eax*4 - 0x4b0]
mov edx, dword [ebp - 0x34]
mov byte [edi + edx], al
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax*4 - 0x4af]
mov byte [edi + edx + 1], al
mov eax, dword [ebp - 0x10]
movzx eax, byte [ebp + eax*4 - 0x4ae]
mov byte [edi + edx + 2], al
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov byte [edi + edx + 3], 0xff
inc eax
add edi, 4
cmp eax, dword [esi]
je 0x4a9b7e
cmp dword [ebp - 0x40], 8
jne 0x4a9b36
cmp ecx, dword [esi + 0xb0]
jae 0x4a9aa1
mov al, byte [ecx]
mov byte [ebp - 1], al
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x10]
mov dword [ebx], eax
movzx eax, byte [ebp - 1]
mov dword [ebp - 0x28], eax
jmp 0x4a9b3c
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x4a9b26
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [ebx]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [ebx], ecx
test eax, eax
jne 0x4a9b03
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax], 0
lea eax, [esi + 0x29]
mov dword [esi + 0xb0], eax
mov byte [ecx], 0
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov dword [ebx], eax
movzx eax, byte [ebp - 1]
mov ecx, dword [esi]
mov dword [ebp - 0x28], eax
jmp 0x4a9b3c
mov edx, dword [ebp - 0x34]
add eax, 0x28
add eax, esi
mov dword [esi + 0xb0], eax
mov eax, dword [ebx]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov dword [ebx], eax
movzx eax, byte [ebp - 1]
mov ecx, dword [esi]
mov dword [ebp - 0x28], eax
jmp 0x4a9b3c
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
mov dword [ebp - 0x28], eax
jmp 0x4a9b3c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
movzx eax, byte [ebp + eax*4 - 0x4b0]
mov byte [edi + edx], al
mov eax, dword [ebp - 0x28]
movzx eax, byte [ebp + eax*4 - 0x4af]
mov byte [edi + edx + 1], al
mov eax, dword [ebp - 0x28]
movzx eax, byte [ebp + eax*4 - 0x4ae]
mov byte [edi + edx + 2], al
mov eax, dword [ebp - 0x2c]
add eax, 2
mov byte [edi + edx + 3], 0xff
add edi, 4
mov dword [ebp - 0x2c], eax
cmp eax, ecx
jl 0x4a9990
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4a9bb0
cmp dword [esi + 0x10], 0
je 0x4a9bae
mov edx, dword [esi + 0xb0]
mov ecx, edx
sub ecx, dword [ebx]
cmp ecx, eax
jge 0x4a9bae
sub eax, ecx
mov dword [ebx], edx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
mov eax, dword [ebp - 0x44]
add esp, 8
jmp 0x4a9bb0
add dword [ebx], eax
mov ecx, dword [esi + 4]
mov edx, ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], ecx
jl 0x4a9980
mov ebx, dword [ebp - 0x34]
jmp 0x4aa44a
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword fs:[0x2c]
add esp, 4
mov eax, dword [eax]
pop edi
pop ebx
pop esi
mov dword [eax + 0xc], str.bad_bpp
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword fs:[0x2c]
add esp, 4
mov eax, dword [eax]
pop edi
pop ebx
pop esi
mov dword [eax + 0xc], str.invalid
xor eax, eax
mov esp, ebp
pop ebp
ret
sub edi, dword [ebp - 0x38]
xor edx, edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x54], edx
sub edi, dword [ebp - 8]
je 0x4a9ca8
test edi, edi
jns 0x4a9c73
mov eax, dword [esi + 0xb0]
mov dword [esi + 0xac], eax
jmp 0x4a9ca8
cmp dword [esi + 0x10], edx
je 0x4a9ca2
mov ecx, dword [esi + 0xb0]
mov eax, ecx
sub eax, dword [esi + 0xac]
cmp eax, edi
jge 0x4a9ca2
sub edi, eax
mov dword [esi + 0xac], ecx
mov eax, dword [esi + 0x14]
push edi
push dword [esi + 0x1c]
call eax
add esp, 8
xor edx, edx
jmp 0x4a9ca8
add dword [esi + 0xac], edi
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x18
jne 0x4a9cb7
mov eax, dword [esi]
lea eax, [eax + eax*2]
jmp 0x4a9cc4
cmp ecx, 0x10
jne 0x4a9cc2
mov eax, dword [esi]
add eax, eax
jmp 0x4a9cc4
xor eax, eax
neg eax
and eax, 3
mov dword [ebp - 0x84], eax
cmp ecx, 0x18
jne 0x4a9ce4
xor edi, edi
mov dword [ebp - 0x54], 1
xor eax, eax
jmp 0x4a9eb1
mov edi, dword [ebp - 0x60]
cmp ecx, 0x20
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
jne 0x4a9d22
cmp edi, 0xff
jne 0x4a9d22
cmp eax, 0xff00
jne 0x4a9d22
cmp ecx, 0xff0000
jne 0x4a9d22
cmp dword [ebp - 0xc], 0xff000000
jne 0x4a9d3d
xor edi, edi
mov dword [ebp - 0x54], 2
xor eax, eax
jmp 0x4a9eb1
mov dword [ebp - 0x54], edx
test ecx, ecx
je 0x4aa4f9
test eax, eax
je 0x4aa4f9
test edi, edi
je 0x4aa4f9
call fcn.004a8bf0
sub eax, 7
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x4c]
mov edx, eax
and eax, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, eax
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x28]
movzx eax, al
mov dword [ebp - 0x18], eax
call fcn.004a8bf0
sub eax, 7
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov edx, eax
and eax, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, eax
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, edi
movzx eax, al
mov dword [ebp - 0x1c], eax
call fcn.004a8bf0
sub eax, 7
mov edx, edi
mov dword [ebp - 0x10], eax
and edi, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, edi
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
mov ecx, dword [ebp - 0xc]
movzx edi, al
mov dword [ebp - 0x50], edi
call fcn.004a8bf0
sub eax, 7
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xc]
mov edx, eax
and eax, 0x55555555
shr edx, 1
and edx, 0x55555555
add edx, eax
mov eax, edx
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
mov eax, ecx
shr eax, 8
add ecx, eax
mov eax, ecx
shr eax, 0x10
add eax, ecx
cmp dword [ebp - 0x18], 8
movzx eax, al
mov dword [ebp - 0x30], eax
ja 0x4aa4f9
cmp dword [ebp - 0x1c], 8
ja 0x4aa4f9
cmp edi, 8
ja 0x4aa4f9
cmp eax, 8
ja 0x4aa4f9
mov ecx, dword [esi + 4]
mov edx, ecx
mov dword [ebp - 0x48], 0
test ecx, ecx
jle 0x4aa44a
mov ecx, dword [ebp - 0x44]
neg ecx
mov dword [ebp - 0x88], ecx
mov ecx, 8
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp - 0x2c]
neg ecx
mov dword [ebp - 0x6c], ecx
mov ecx, 8
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x10]
neg ecx
mov dword [ebp - 0x74], ecx
mov ecx, 8
sub ecx, edi
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x3c]
neg ecx
mov dword [ebp - 0x7c], ecx
mov ecx, 8
sub ecx, eax
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x38], eax
nop word [eax + eax]
cmp dword [ebp - 0x54], 0
mov eax, dword [esi]
mov dword [ebp - 0x5c], 0
je 0x4aa1ae
test eax, eax
jle 0x4aa3f6
mov ecx, dword [ebp - 0x14]
lea edi, [esi + 0xac]
lea edx, [esi + 0x20]
nop word [eax + eax]
mov ebx, dword [esi + 0xb0]
mov eax, dword [edi]
cmp eax, ebx
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
jae 0x4a9f6d
mov bl, byte [eax]
inc eax
mov byte [ebp - 1], bl
jmp 0x4a9fcd
cmp dword [esi + 0x20], 0
lea edx, [esi + 0x20]
mov dword [ebp - 0x20], edx
je 0x4a9ff5
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [edi]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
test eax, eax
jne 0x4a9fb3
mov edx, dword [ebp - 0x20]
lea ecx, [esi + 0x29]
mov dword [esi + 0xb0], ecx
mov dword [ebp - 0x24], ecx
mov dword [edx], eax
mov byte [esi + 0x28], al
jmp 0x4a9fc1
add eax, 0x28
add eax, esi
mov dword [ebp - 0x24], eax
mov dword [esi + 0xb0], eax
mov al, byte [esi + 0x28]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 1], al
lea eax, [esi + 0x29]
mov edx, edi
mov ebx, eax
mov dword [edx], ebx
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 8], edx
mov dl, byte [ebp - 1]
mov byte [ecx + ebx + 2], dl
mov edx, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jae 0x4aa000
mov bl, byte [eax]
mov byte [ebp - 1], bl
mov ebx, dword [ebp - 0x34]
jmp 0x4aa062
mov dword [ebp - 0x20], edx
mov byte [ebx + ecx + 2], 0
mov dword [ebp - 8], edx
cmp dword [edx], 0
je 0x4aa081
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [edi]
mov edx, eax
sub ecx, dword [esi + 0xb4]
lea eax, [esi + 0x28]
add dword [esi + 0xa8], ecx
add esp, 0xc
mov dword [edi], eax
test edx, edx
jne 0x4aa04a
mov edx, dword [ebp - 0x20]
lea ecx, [esi + 0x29]
mov dword [esi + 0xb0], ecx
mov dword [ebp - 0x24], ecx
mov dword [edx], 0
mov byte [eax], 0
jmp 0x4aa058
lea eax, [esi + 0x28]
add eax, edx
mov dword [ebp - 0x24], eax
mov dword [esi + 0xb0], eax
mov eax, dword [edi]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 1]
inc eax
mov byte [ecx + ebx + 1], dl
mov edx, dword [ebp - 0x20]
mov dword [edi], eax
cmp eax, dword [ebp - 0x24]
jae 0x4aa086
mov dl, byte [eax]
inc eax
mov byte [ebp - 1], dl
lea edx, [esi + 0x20]
mov dword [edi], eax
jmp 0x4aa0f6
mov byte [ebx + ecx + 1], 0
cmp dword [edx], 0
je 0x4aa0f2
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [edi]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [edi], ecx
test eax, eax
jne 0x4aa0d8
mov eax, dword [ebp - 8]
mov dword [eax], 0
lea eax, [esi + 0x29]
mov dword [esi + 0xb0], eax
mov byte [ecx], 0
mov eax, dword [edi]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x14]
mov dword [edi], eax
jmp 0x4aa0f9
add eax, 0x28
add eax, esi
mov dword [esi + 0xb0], eax
mov eax, dword [edi]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 0x14]
mov dword [edi], eax
jmp 0x4aa0f9
mov byte [ebp - 1], 0
mov dword [ebp - 0x20], edx
mov dl, byte [ebp - 1]
mov byte [ecx + ebx], dl
add ecx, 3
cmp dword [ebp - 0x54], 2
mov dword [ebp - 0x14], ecx
jne 0x4aa187
cmp eax, dword [esi + 0xb0]
jae 0x4aa11a
mov dl, byte [eax]
inc eax
mov dword [edi], eax
jmp 0x4aa18a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x4aa183
push dword [esi + 0x24]
lea eax, [esi + 0x28]
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
call eax
mov ecx, dword [edi]
add esp, 0xc
sub ecx, dword [esi + 0xb4]
add dword [esi + 0xa8], ecx
lea ecx, [esi + 0x28]
mov dword [edi], ecx
test eax, eax
jne 0x4aa16c
mov eax, dword [ebp - 8]
mov dword [eax], 0
lea eax, [esi + 0x29]
mov dword [esi + 0xb0], eax
mov byte [ecx], 0
mov eax, dword [edi]
mov ecx, dword [ebp - 0x14]
mov dl, byte [eax]
inc eax
mov dword [edi], eax
jmp 0x4aa18a
mov ecx, dword [ebp - 0x14]
add eax, 0x28
add eax, esi
mov dword [esi + 0xb0], eax
mov eax, dword [edi]
mov dl, byte [eax]
inc eax
mov dword [edi], eax
jmp 0x4aa18a
xor dl, dl
jmp 0x4aa18a
or dl, 0xff
movzx eax, dl
or dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x5c]
mov byte [ecx + ebx], dl
inc eax
mov edx, dword [ebp - 0x20]
inc ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x5c], eax
cmp eax, dword [esi]
jl 0x4a9f50
jmp 0x4aa3f6
test eax, eax
jle 0x4aa3f6
mov ecx, esi
call fcn.0049fab0
cmp dword [ebp - 0x40], 0x10
mov edi, eax
je 0x4aa1d6
mov ecx, esi
call fcn.0049fab0
shl eax, 0x10
add eax, edi
mov dword [ebp - 8], eax
mov edi, eax
mov ecx, dword [ebp - 0x44]
mov edx, edi
and edx, dword [ebp - 0x4c]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x88]
shl edx, cl
cmp dword [ebp - 0x44], 0
cmovge edx, eax
mov dword [ebp - 8], edx
cmp edx, 0x100
jb 0x4aa214
push 0x1520
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.v___256
call dword [ebp - 0x38]
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x68]
shr edx, cl
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
cmp ecx, 8
jbe 0x4aa23f
push 0x1522
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.bits___0__bits___8
call dword [ebp - 0x38]
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx*4 + 0x4d5598]
mov ecx, dword [ecx*4 + 0x4d55fc]
imul eax, edx
mov edx, edi
and edx, dword [ebp - 0x28]
sar eax, cl
mov ecx, dword [ebp - 0x14]
mov byte [ecx + ebx], al
inc ecx
mov eax, edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x2c]
shr eax, cl
mov ecx, dword [ebp - 0x6c]
shl edx, cl
cmp dword [ebp - 0x2c], 0
cmovge edx, eax
mov dword [ebp - 8], edx
cmp edx, 0x100
jb 0x4aa297
push 0x1520
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.v___256
call dword [ebp - 0x38]
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x70]
shr edx, cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
cmp ecx, 8
jbe 0x4aa2c2
push 0x1522
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.bits___0__bits___8
call dword [ebp - 0x38]
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx*4 + 0x4d5598]
mov ecx, dword [ecx*4 + 0x4d55fc]
imul eax, edx
mov edx, edi
and edx, dword [ebp - 0x60]
sar eax, cl
mov ecx, dword [ebp - 0x14]
mov byte [ecx + ebx], al
inc ecx
mov eax, edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
shr eax, cl
mov ecx, dword [ebp - 0x74]
shl edx, cl
cmp dword [ebp - 0x10], 0
cmovge edx, eax
mov dword [ebp - 8], edx
cmp edx, 0x100
jb 0x4aa31a
push 0x1520
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.v___256
call dword [ebp - 0x38]
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x78]
shr edx, cl
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 8], edx
cmp ecx, 8
jbe 0x4aa345
push 0x1522
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.bits___0__bits___8
call dword [ebp - 0x38]
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx*4 + 0x4d5598]
mov ecx, dword [ecx*4 + 0x4d55fc]
imul eax, edx
sar eax, cl
mov ecx, dword [ebp - 0x14]
mov byte [ecx + ebx], al
inc ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4aa3d8
mov edx, dword [ebp - 0x3c]
and edi, eax
mov eax, edi
mov ecx, edx
shr eax, cl
mov ecx, dword [ebp - 0x7c]
shl edi, cl
test edx, edx
cmovns edi, eax
cmp edi, 0x100
jb 0x4aa39b
push 0x1520
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.v___256
call dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x80]
shr edi, cl
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jbe 0x4aa3c0
push 0x1522
push str.C:UsersAdminDownloadsimgui_masterexamplesexample_win32_directx11_stb_image.h
push str.bits___0__bits___8
call dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov eax, dword [ecx*4 + 0x4d5598]
mov ecx, dword [ecx*4 + 0x4d55fc]
imul eax, edi
sar eax, cl
mov ecx, dword [ebp - 0x14]
jmp 0x4aa3dd
mov eax, 0xff
or dword [ebp - 0x58], eax
mov byte [ecx + ebx], al
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x5c]
inc ecx
mov dword [ebp - 0x5c], ecx
cmp ecx, dword [esi]
jl 0x4aa1b6
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x4aa436
cmp dword [esi + 0x10], 0
je 0x4aa430
mov eax, dword [esi + 0xb0]
mov ecx, eax
sub ecx, dword [esi + 0xac]
cmp ecx, edx
jge 0x4aa430
mov dword [esi + 0xac], eax
mov eax, edx
sub eax, ecx
push eax
push dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
call eax
add esp, 8
jmp 0x4aa436
add dword [esi + 0xac], edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [esi + 4]
inc eax
mov dword [ebp - 0x48], eax
mov edx, ecx
cmp eax, ecx
jl 0x4a9f20
cmp dword [ebp - 0x58], 0
jne 0x4aa46c
mov eax, dword [esi]
imul eax, ecx
lea eax, [eax*4 - 1]
test eax, eax
js 0x4aa46c
mov byte [eax + ebx], 0xff
sub eax, 4
jns 0x4aa460
mov edx, dword [esi + 4]
cmp dword [ebp - 0x64], 0
jle 0x4aa4e1
xor edi, edi
mov ecx, edx
mov dword [ebp - 0x48], edi
test ecx, 0xfffffffe
jle 0x4aa4e1
mov eax, dword [esi]
sub ecx, edi
dec ecx
mov edx, eax
imul ecx, eax
imul edx, edi
xor edi, edi
shl eax, 2
shl ecx, 2
shl edx, 2
mov dword [ebp - 0x64], edx
lea edx, [ecx + ebx]
test eax, eax
jle 0x4aa4cd
mov ebx, dword [ebp - 0x64]
sub ebx, ecx
nop dword [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov cl, byte [edx + ebx - 1]
inc edi
mov byte [edx + ebx - 1], al
mov byte [edx - 1], cl
mov eax, dword [esi]
shl eax, 2
cmp edi, eax
jl 0x4aa4b0
mov ebx, dword [ebp - 0x34]
mov edx, dword [esi + 4]
mov ecx, edx
mov edi, dword [ebp - 0x48]
mov eax, ecx
inc edi
sar eax, 1
mov dword [ebp - 0x48], edi
cmp edi, eax
jl 0x4aa481
mov ecx, dword [ebp - 0x8c]
mov eax, dword [esi]
pop edi
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword fs:[0x2c]
add esp, 4
mov eax, dword [eax]
pop edi
pop ebx
pop esi
mov dword [eax + 0xc], str.bad_masks
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
pop edi
pop ebx
pop esi
mov eax, dword [eax]
mov dword [eax + 0xc], str.outofmem
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
pop edi
pop ebx
pop esi
mov eax, dword [eax]
mov dword [eax + 0xc], str.too_large
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
pop edi
pop ebx
pop esi
mov eax, dword [eax]
mov dword [eax + 0xc], str.bad_offset
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
pop edi
pop ebx
pop esi
mov eax, dword [eax]
mov dword [eax + 0xc], str.bad_header
xor eax, eax
mov esp, ebp
pop ebp
ret