Function at 0x4e3cb6
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 0x18]
xor ebx, ebx
lea edi, [eax + eax*2]
shl edi, 3
mov dword [esp + 0x3c], edi
mov ebp, dword [esp + edi + 0x28c]
mov dword [esp + 0x44], ebp
mov esi, dword [ebp + 4]
test esi, esi
jne 0x4e38f9
xor eax, eax
jmp 0x4e39b5
cmp byte [esi], 0x15
jne 0x4e393d
mov esi, dword [esi + 0x20]
xor ecx, ecx
test edx, edx
jle 0x4e3912
cmp dword [esp + ecx*4 + 0x58], esi
je 0x4e3934
inc ecx
cmp ecx, edx
jl 0x4e3907
cmp ecx, edx
jne 0x4e38f2
cmp ecx, 0x20
jae 0x4e38f2
inc edx
mov eax, 1
mov dword [esp + 0x54], edx
mov dword [esp + ecx*4 + 0x58], esi
mov edx, dword [esp + 0x54]
shl eax, cl
jmp 0x4e39b5
mov eax, 1
shl eax, cl
jmp 0x4e39b5
mov eax, dword [esi + 8]
test eax, eax
je 0x4e3958
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004e54a0
mov edx, dword [esp + 0x5c]
add esp, 8
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4e3973
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.004e54a0
mov edx, dword [esp + 0x5c]
add esp, 8
or ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4e39ab
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
jle 0x4e39ab
xor ebp, ebp
mov edx, dword [eax + 4]
lea ecx, [esp + 0x54]
mov eax, dword [edx + ebp]
push eax
push ecx
call fcn.004e54a0
or ebx, eax
mov eax, dword [esi + 0xc]
add esp, 8
inc edi
mov ecx, dword [eax]
add ebp, 0xc
cmp edi, ecx
jl 0x4e3984
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x44]
mov eax, ebx
mov dword [esp + edi + 0x298], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
jne 0x4e39cc
xor eax, eax
jmp 0x4e3a7d
cmp byte [esi], 0x15
jne 0x4e3a0d
mov esi, dword [esi + 0x20]
xor ecx, ecx
test edx, edx
jle 0x4e39e5
cmp dword [esp + ecx*4 + 0x58], esi
je 0x4e3a04
inc ecx
cmp ecx, edx
jl 0x4e39da
cmp ecx, edx
jne 0x4e39c5
cmp ecx, 0x20
jae 0x4e39c5
inc edx
mov eax, 1
mov dword [esp + 0x54], edx
mov dword [esp + ecx*4 + 0x58], esi
mov edx, dword [esp + 0x54]
shl eax, cl
jmp 0x4e3a7d
mov eax, 1
shl eax, cl
jmp 0x4e3a7d
mov eax, dword [esi + 8]
test eax, eax
je 0x4e3a28
lea edx, [esp + 0x54]
push eax
push edx
call fcn.004e54a0
mov edx, dword [esp + 0x5c]
add esp, 8
mov ebx, eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4e3a43
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004e54a0
mov edx, dword [esp + 0x5c]
add esp, 8
or ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4e3a7b
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
jle 0x4e3a7b
xor ebp, ebp
mov ecx, dword [eax + 4]
lea eax, [esp + 0x54]
mov edx, dword [ecx + ebp]
push edx
push eax
call fcn.004e54a0
or ebx, eax
mov eax, dword [esi + 0xc]
add esp, 8
inc edi
mov ecx, dword [eax]
add ebp, 0xc
cmp edi, ecx
jl 0x4e3a54
mov edx, dword [esp + 0x54]
mov eax, ebx
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
xor ebp, ebp
mov dword [esp + edi + 0x29c], eax
mov al, byte [ebx]
cmp al, 0x15
jne 0x4e3ad7
mov eax, dword [ebx + 0x20]
xor ecx, ecx
test edx, edx
jle 0x4e3aa8
cmp dword [esp + ecx*4 + 0x58], eax
je 0x4e3aca
inc ecx
cmp ecx, edx
jl 0x4e3a9d
cmp ecx, edx
jne 0x4e3ad3
cmp ecx, 0x20
jae 0x4e3ad3
inc edx
mov dword [esp + 0x54], edx
mov dword [esp + ecx*4 + 0x58], eax
mov edx, dword [esp + 0x54]
mov eax, 1
shl eax, cl
jmp 0x4e3b4b
mov eax, 1
shl eax, cl
jmp 0x4e3b4b
xor eax, eax
jmp 0x4e3b4b
mov eax, dword [ebx + 8]
test eax, eax
je 0x4e3af2
lea ecx, [esp + 0x54]
push eax
push ecx
call fcn.004e54a0
mov edx, dword [esp + 0x5c]
add esp, 8
mov ebp, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4e3b0d
lea edx, [esp + 0x54]
push eax
push edx
call fcn.004e54a0
mov edx, dword [esp + 0x5c]
add esp, 8
or ebp, eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4e3b49
mov ecx, dword [eax]
xor esi, esi
test ecx, ecx
jle 0x4e3b49
xor edi, edi
mov eax, dword [eax + 4]
lea edx, [esp + 0x54]
mov ecx, dword [eax + edi]
push ecx
push edx
call fcn.004e54a0
or ebp, eax
mov eax, dword [ebx + 0xc]
add esp, 8
inc esi
mov ecx, dword [eax]
add edi, 0xc
cmp esi, ecx
jl 0x4e3b1e
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x3c]
mov eax, ebp
mov dword [esp + edi + 0x2a0], eax
or eax, 0xffffffff
mov word [esp + edi + 0x292], ax
mov word [esp + edi + 0x294], ax
xor eax, eax
mov byte [esp + edi + 0x290], 0
mov al, byte [ebx]
add eax, 0xffffffd3
cmp eax, 0x24
ja case.0x4e3b81.46
xor ecx, ecx
mov cl, byte [eax + 0x4e52fc]
jmp dword [ecx*4 + 0x4e52f4]
mov eax, dword [esp + edi + 0x298]
mov ecx, dword [esp + edi + 0x29c]
test ecx, eax
jne case.0x4e3b81.46
mov eax, dword [ebx + 8]
test eax, eax
je 0x4e3bba
cmp byte [eax], 0x15
jne 0x4e3bba
mov cx, word [eax + 0x20]
mov byte [esp + edi + 0x290], 1
mov word [esp + edi + 0x294], cx
mov ebx, dword [ebx + 4]
cmp byte [ebx], 0x15
jne case.0x4e3b81.46
mov ax, word [ebx + 0x20]
mov byte [esp + edi + 0x290], 1
mov word [esp + edi + 0x292], ax
mov ecx, dword [esp + 0xc08]
mov esi, dword [ecx + 0x64]
test esi, esi
je 0x4e3cd2
mov eax, dword [esi + 4]
test eax, eax
jl 0x4e3c5c
xor ecx, ecx
test edx, edx
jle 0x4e3c00
cmp dword [esp + ecx*4 + 0x58], eax
je 0x4e3c1f
inc ecx
cmp ecx, edx
jl 0x4e3bf5
cmp ecx, edx
jne 0x4e3c28
cmp ecx, 0x20
jae 0x4e3c28
inc edx
mov dword [esp + 0x54], edx
mov dword [esp + ecx*4 + 0x58], eax
mov edx, dword [esp + 0x54]
mov eax, 1
shl eax, cl
jmp 0x4e3c2a
mov eax, 1
shl eax, cl
jmp 0x4e3c2a
xor eax, eax
mov ebp, dword [esp + edi + 0x29c]
mov ebx, dword [esp + edi + 0x298]
mov ecx, dword [esp + edi + 0x2a0]
not eax
and ebp, eax
and ebx, eax
and ecx, eax
mov dword [esp + edi + 0x29c], ebp
mov dword [esp + edi + 0x298], ebx
mov dword [esp + edi + 0x2a0], ecx
mov eax, dword [esi + 8]
test eax, eax
jl 0x4e3cd2
xor ecx, ecx
test edx, edx
jle 0x4e3c74
cmp dword [esp + ecx*4 + 0x58], eax
je 0x4e3c93
inc ecx
cmp ecx, edx
jl 0x4e3c69
cmp ecx, edx
jne 0x4e3c9c
cmp ecx, 0x20
jae 0x4e3c9c
inc edx
mov dword [esp + 0x54], edx
mov dword [esp + ecx*4 + 0x58], eax
mov edx, dword [esp + 0x54]
mov eax, 1
shl eax, cl
jmp 0x4e3c9e
mov eax, 1
shl eax, cl
jmp 0x4e3c9e
xor eax, eax
mov ebp, dword [esp + edi + 0x29c]
mov ebx, dword [esp + edi + 0x298]
mov esi, dword [esp + edi + 0x2a0]
lea ecx, [esp + edi + 0x2a0]
mov al, byte [0xf7000002]
shl byte [ebx], 1
call 0xf07214e5
mov al, byte [0xf7000002]
shl byte [ebx], 1
call 0xf07214e5
mov dword [esp + edi + 0x29c], ebp
mov dword [esp + edi + 0x298], ebx
mov dword [ecx], esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4e38d0
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0xc0c]
xor eax, eax
mov ecx, dword [ebx]
mov dword [esp + 0x2c], eax
cmp ecx, eax
mov dword [esp + 0x18], eax
jle 0x4e4108
add esi, 0x20
add ebx, 0x10
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], ebx
mov ebp, eax
jmp 0x4e3d1c
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
cmp esi, 0x20
jae 0x4e4108
mov eax, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x28], ebx
jle 0x4e3d45
cmp dword [esp + ecx*4 + 0x58], ebx
je 0x4e3d57
inc ecx
cmp ecx, edx
jl 0x4e3d3a
cmp ecx, edx
jne 0x4e3d60
cmp ecx, 0x20
jae 0x4e3d60
inc edx
mov dword [esp + 0x54], edx
mov dword [esp + ecx*4 + 0x58], ebx
mov edx, 1
shl edx, cl
jmp 0x4e3d62
xor edx, edx
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x34], eax
mov dword [esp + 0x20], edx
mov edi, dword [ecx]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], eax
mov dword [ecx + 4], 0xffffffff
mov dword [esp + esi*4 + 0xd8], 0xffffffff
mov dword [esp + esi*4 + 0x158], 0xffffffff
mov dword [esp + esi*4 + 0x1d8], 0xffffffff
jle 0x4e3e96
lea ecx, [esp + 0x29c]
jmp 0x4e3db9
mov ebx, dword [esp + 0x28]
movsx edx, word [ecx - 0xa]
cmp edx, ebx
jne case.0x4e3dec.48
mov esi, dword [ecx - 0x10]
mov edx, dword [esi + 4]
mov ebx, dword [edx + 0x24]
test ebx, ebx
jge case.0x4e3dec.48
mov edx, dword [ecx]
mov ebx, edx
and ebx, ebp
cmp ebx, edx
jne case.0x4e3dec.48
xor edx, edx
mov dl, byte [esi]
lea esi, [edx - 0x2d]
cmp esi, 0x24
ja case.0x4e3dec.48
xor edx, edx
mov dl, byte [esi + 0x4e5334]
jmp dword [edx*4 + 0x4e5324]
mov edx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0xd8], eax
jmp case.0x4e3dec.48
mov edx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x158], eax
jmp case.0x4e3dec.48
mov edx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x1d8], eax
movsx edx, word [ecx - 8]
cmp edx, dword [esp + 0x28]
jne case.0x4e3e4e.48
mov esi, dword [ecx - 0x10]
mov edx, dword [esi + 8]
mov ebx, dword [edx + 0x24]
test ebx, ebx
jge case.0x4e3e4e.48
mov edx, dword [ecx - 4]
mov ebx, edx
and ebx, ebp
cmp ebx, edx
jne case.0x4e3e4e.48
xor edx, edx
mov dl, byte [esi]
lea esi, [edx - 0x2d]
cmp esi, 0x24
ja case.0x4e3e4e.48
xor edx, edx
mov dl, byte [esi + 0x4e536c]
jmp dword [edx*4 + 0x4e535c]
mov edx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0xd8], eax
jmp case.0x4e3e4e.48
mov edx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x1d8], eax
jmp case.0x4e3e4e.48
mov edx, dword [esp + 0x18]
mov dword [esp + edx*4 + 0x158], eax
pop eax
add dword [eax], eax
invalid
mov edx, dword [esp + 0x34]
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x4e3db5
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + esi*4 + 0xd8]
test eax, eax
jl 0x4e3eb2
or ebp, edx
mov dword [ecx], 0
mov dword [esp + 0x2c], ebp
jmp 0x4e40e0
mov edi, dword [edi + 0x10]
test edi, edi
mov dword [esp + 0x1c], edi
je 0x4e4099
xor ebx, ebx
mov esi, dword [edi + 4]
mov dword [esp + 0x38], ebx
cmp esi, 0x20
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
jg 0x4e4080
mov eax, dword [esp + 0x34]
cmp eax, ebx
jle 0x4e401a
lea ebp, [esp + 0x29c]
mov dword [esp + 0x44], eax
movsx ecx, word [ebp - 0xa]
cmp ecx, dword [esp + 0x28]
jne case.0x4e3f47.49
mov eax, dword [ebp]
mov edi, dword [esp + 0x2c]
mov edx, eax
and edx, edi
cmp edx, eax
jne case.0x4e3f47.49
mov edx, dword [ebp - 0x10]
xor ecx, ecx
test esi, esi
mov eax, dword [edx + 4]
mov edi, dword [eax + 0x24]
jle case.0x4e3f47.49
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
cmp dword [eax], edi
je 0x4e3f33
inc ecx
add eax, 4
cmp ecx, esi
jl 0x4e3f25
jmp case.0x4e3f47.49
xor eax, eax
mov al, byte [edx]
add eax, 0xffffffd3
cmp eax, 0x24
ja case.0x4e3f47.49
xor edx, edx
mov dl, byte [eax + 0x4e53a8]
jmp dword [edx*4 + 0x4e5394]
test ecx, ecx
jne case.0x4e3f47.49
mov eax, dword [esp + 0x3c]
or al, 1
mov dword [esp + 0x3c], eax
jmp case.0x4e3f47.49
mov eax, 1
shl eax, cl
or ebx, eax
jmp case.0x4e3f47.49
mov eax, dword [esp + 0x38]
mov edx, 1
shl edx, cl
or eax, edx
mov dword [esp + 0x38], eax
jmp case.0x4e3f47.49
mov eax, 1
shl eax, cl
or dword [esp + 0x10], eax
movsx ecx, word [ebp - 8]
cmp ecx, dword [esp + 0x28]
jne case.0x4e3fd8.48
mov eax, dword [ebp - 4]
mov edi, dword [esp + 0x2c]
mov edx, eax
and edx, edi
cmp edx, eax
jne case.0x4e3fd8.48
mov edx, dword [ebp - 0x10]
xor ecx, ecx
test esi, esi
mov eax, dword [edx + 8]
mov edi, dword [eax + 0x24]
jle case.0x4e3fd8.48
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
cmp dword [eax], edi
je 0x4e3fc4
inc ecx
add eax, 4
cmp ecx, esi
jl 0x4e3fb6
jmp case.0x4e3fd8.48
xor eax, eax
mov al, byte [edx]
add eax, 0xffffffd3
cmp eax, 0x24
ja case.0x4e3fd8.48
xor edx, edx
mov dl, byte [eax + 0x4e53e0]
jmp dword [edx*4 + 0x4e53d0]
mov eax, 1
shl eax, cl
or ebx, eax
jmp case.0x4e3fd8.48
mov eax, dword [esp + 0x10]
mov edx, 1
shl edx, cl
or eax, edx
mov dword [esp + 0x10], eax
jmp case.0x4e3fd8.48
mov eax, 1
shl eax, cl
or dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
add ebp, 0x18
dec eax
mov dword [esp + 0x44], eax
jne 0x4e3ef2
xor edx, edx
test esi, esi
jle 0x4e4039
lea ecx, [edx + 1]
mov eax, 1
shl eax, cl
dec eax
mov edi, eax
and edi, ebx
cmp edi, eax
jne 0x4e4039
mov edx, ecx
cmp edx, esi
jl 0x4e4020
mov eax, 1
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x38]
lea esi, [edx*8]
test ecx, eax
je 0x4e4052
inc esi
mov edx, dword [esp + 0x10]
test edx, eax
je 0x4e405d
add esi, 2
test esi, esi
jne 0x4e406e
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4e406e
mov esi, 4
cmp esi, dword [esp + 0x40]
jle 0x4e4080
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov edi, dword [ecx + 0x18]
cmp edi, ebx
mov dword [esp + 0x1c], edi
jne 0x4e3ec3
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
or ebp, esi
mov esi, dword [esp + 0x18]
test eax, eax
mov dword [ecx], eax
mov dword [ecx + 8], edx
mov dword [ecx + 0x34], 0
mov dword [esp + 0x2c], ebp
je 0x4e40e0
mov eax, dword [esp + 0xc08]
mov edx, dword [eax + 0x48]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x48]
inc edx
mov dword [eax + 0x48], edx
mov eax, edx
mov edx, dword [esp + 0x4c]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0xc0c]
mov edi, dword [esp + 0x14]
add ecx, 0x3c
inc esi
mov dword [esp + 0x30], ecx
mov ecx, dword [eax]
add edi, 0x24
cmp esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
jl 0x4e3d18
mov eax, dword [esp + 0xc18]
test eax, eax
je 0x4e432b
mov ecx, dword [eax]
test ecx, ecx
je 0x4e432b
mov esi, dword [esp + 0xc0c]
cmp dword [esi], 0
jle 0x4e432b
mov edx, dword [esi + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x20]
test eax, eax
mov dword [esp + 0x38], eax
je 0x4e4151
cmp dword [edx + 0x28], 4
je 0x4e432b
mov eax, dword [esp + 0xd8]
test eax, eax
jge 0x4e432b
mov eax, dword [esp + 0x158]
test eax, eax
jge 0x4e432b
mov eax, dword [esp + 0x1d8]
test eax, eax
jge 0x4e432b
mov eax, dword [edx + 0x28]
mov ebp, dword [esi + 0x1c]
mov esi, dword [ecx + 4]
add eax, 4
cdq
and edx, 7
xor edi, edi
add eax, edx
mov dword [esp + 0x44], esi
mov ebx, eax
mov al, byte [esi + 8]
and eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
sar ebx, 3
test eax, eax
mov dword [esp + 0x30], ebx
jle 0x4e41ee
mov ecx, esi
mov dl, byte [ecx + 8]
mov esi, dword [esp + 0x10]
mov bl, dl
and ebx, 1
cmp ebx, esi
jne 0x4e432b
test dl, 6
jne 0x4e432b
mov edx, dword [ecx]
cmp byte [edx], 0x15
jne 0x4e432b
cmp dword [edx + 0x20], ebp
jne 0x4e432b
inc edi
add ecx, 0xc
cmp edi, eax
jl 0x4e41b1
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], 0
mov esi, dword [ecx + 0x10]
test esi, esi
mov dword [esp + 0x28], esi
je 0x4e432b
mov ecx, dword [esi + 4]
cmp ecx, ebx
jl 0x4e42c6
cmp ecx, eax
jl 0x4e42c6
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x3c], edi
jle 0x4e427f
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 8]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x38]
mov ebp, dword [edx + 8]
sub ebp, ecx
mov dword [esp + 0x1c], ebp
jmp 0x4e4244
mov ebp, dword [esp + 0x1c]
mov edx, dword [ecx]
cmp dword [ecx + ebp], edx
jne 0x4e4279
cmp edi, eax
jge 0x4e4267
mov ebp, dword [esp + 0x40]
mov ebp, dword [ebp]
cmp dword [ebp + 0x24], edx
jne 0x4e4267
mov edx, dword [esp + 0x40]
inc edi
add edx, 0xc
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
add ecx, 4
inc edx
cmp edx, ebx
mov dword [esp + 0x3c], edx
jl 0x4e4240
jmp 0x4e427f
cmp dword [esp + 0x3c], ebx
jl 0x4e42c6
xor ebp, ebp
cmp edi, eax
jge 0x4e42b4
mov edx, dword [esi + 8]
lea esi, [edi + edi*2]
mov ecx, edi
lea edx, [edx + ebx*4]
mov ebx, dword [esp + 0x44]
lea esi, [ebx + esi*4]
mov ebx, dword [esi]
mov ebx, dword [ebx + 0x24]
cmp ebx, dword [edx]
jne 0x4e42ac
inc ebp
add edx, 4
inc ecx
add esi, 0xc
cmp ecx, eax
jl 0x4e4297
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
add edi, ebp
cmp edi, eax
jl 0x4e42c6
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], esi
cmp esi, ecx
je 0x4e42d5
mov esi, dword [esi + 0x18]
test esi, esi
mov dword [esp + 0x28], esi
jne 0x4e4209
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4e432b
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
xor edx, edx
cmp edi, 1
sete dl
test eax, eax
je 0x4e42fb
cmp eax, ecx
jne 0x4e432b
mov eax, dword [esp + 0x4c]
jmp 0x4e431b
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0xc08]
mov esi, dword [ecx + 0x48]
mov dword [eax + 0x24], esi
mov esi, dword [ecx + 0x48]
inc esi
mov dword [ecx + 0x48], esi