Function at 0x41ded0
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov edi, dword [esi]
mov eax, dword [esi + 0x44]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x3c], 0
mov eax, dword [edi + 0x20]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x8c], eax
shl eax, 8
or eax, 0x34
mov dword [esp + 0x78], 0
push eax
push edi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], 0
call fcn.0041be90
mov edx, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0xc
mov dword [eax], edx
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], 0xffffffff
mov ecx, dword [edi + 0x20]
movzx eax, byte [edi + 0x42]
inc ecx
cmp ecx, eax
jbe 0x41df75
cmp ecx, 0xfa
jae 0x41ed18
mov byte [edi + 0x42], cl
inc edx
mov dword [edi + 0x20], ecx
cmp dword [esi + 0x24], 0x7b
mov dword [esp + 0x4c], edx
jne 0x41ed25
push esi
call fcn.004169d0
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, 0x7d
je 0x41eb2e
nop dword [eax]
mov dword [esp + 0x38], 0
cmp eax, 0x5b
jne 0x41e0d5
push esi
call fcn.004169d0
push 0
lea eax, [esp + 0x18]
push eax
push esi
call int.0041cd10
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, dword [esp + 0x20]
lea eax, [esp + 0x10]
mov esi, dword [esi]
push eax
push esi
je 0x41e062
call fcn.0041d0a0
add esp, 8
cmp dword [esp + 0x18], 0xc
jne 0x41e010
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
je 0x41e06a
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x24]
jb 0x41e010
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0041ee20
add esp, 0xc
jmp 0x41e06a
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041d0a0
add esp, 8
cmp dword [esp + 0x18], 0xc
jne 0x41e031
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x24]
jb 0x41e031
dec dword [esi + 0x20]
mov edx, dword [esi + 0x20]
movzx eax, byte [esi + 0x42]
lea ecx, [edx + 1]
cmp ecx, eax
jbe 0x41e04e
cmp ecx, 0xfa
jae 0x41ed2d
mov byte [esi + 0x42], cl
push edx
lea eax, [esp + 0x14]
mov dword [esi + 0x20], ecx
push eax
push esi
call fcn.0041ee20
add esp, 0xc
jmp 0x41e06a
call fcn.0041d0a0
add esp, 8
mov esi, dword [ebp + 8]
cmp dword [esi + 0x24], 0x5d
jne 0x41ed3a
push esi
call fcn.004169d0
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, 4
jle 0x41e0a1
lea eax, [esp + 0x10]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0041dab0
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, 4
jne 0x41e0b9
mov eax, dword [esp + 0x14]
add eax, eax
or eax, dword [esp + 0x10]
jne 0x41e0b9
mov dword [esp + 0x3c], 1
jmp 0x41e0bd
inc dword [esp + 0x30]
cmp dword [esi + 0x24], 0x3d
jne 0x41ed4d
push esi
call fcn.004169d0
add esp, 4
jmp 0x41e193
cmp eax, 0x11f
je 0x41e0e3
cmp eax, 0x10a
jne 0x41e154
push esi
call fcn.004169b0
add esp, 4
cmp eax, 0x3d
jne 0x41e154
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x11f
je 0x41e126
cmp eax, 0x10a
jne 0x41ed42
push dword [ebp + 8]
mov esi, dword [esi + 8]
call fcn.004169d0
mov dword [esp + 0x14], esi
add esp, 4
mov esi, dword [ebp + 8]
cmp dword [esi + 0x24], 0x3d
jne 0x41ed4d
push esi
call fcn.004169d0
add esp, 4
inc dword [esp + 0x30]
jmp 0x41e193
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
movd xmm0, eax
inc eax
cvtdq2pd xmm0, xmm0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], 1
movsd qword [esp + 0x10], xmm0
push 0
lea eax, [esp + 0x5c]
push eax
push esi
call int.0041cd10
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 4
jg 0x41e354
test ecx, ecx
je 0x41e354
cmp ecx, 3
je 0x41e1d6
cmp dword [esp + 0x60], 4
jg 0x41e354
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
jne 0x41e354
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x41e27d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41e1f8
cmp eax, 1
jne 0x41e1f1
jmp 0x41e1fa
dec eax
bsr eax, eax
inc eax
jmp 0x41e1fa
xor eax, eax
push eax
xor eax, eax
cmp dword [esp + 0x40], eax
cmovne eax, dword [esp + 0x38]
push eax
push dword [edi + 8]
call fcn.00410860
mov dword [esp + 0x34], eax
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
push eax
push dword [edi]
mov dword [esp + 0xa8], 0xfffffff4
push dword [edi + 8]
call fcn.00410f00
mov ecx, eax
add esp, 0x18
cmp dword [ecx + 4], 0
jne 0x41e246
mov ecx, dword [ecx]
jmp 0x41e25b
mov eax, dword [edi + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x2c], eax
mov edx, dword [esp + 0x74]
mov eax, dword [edi + 0x34]
shl ecx, 8
or ecx, dword [esp + 0x8c]
shl ecx, 8
or ecx, 0x35
mov dword [eax + edx*8], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], 0
cmp ecx, 2
jg 0x41e28e
not ecx
jmp 0x41e2af
mov eax, dword [esp + 0x10]
mov dword [esp + 0x80], eax
cmp ecx, 3
jne 0x41e2ab
mov dword [esp + 0x84], 0xfffffffb
jmp 0x41e2b6
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x84], ecx
lea eax, [esp + 0x80]
push eax
push edx
push dword [edi + 8]
call fcn.00410f00
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x28]
mov al, byte [eax + 4]
test al, 4
je 0x41e2f4
mov ecx, dword [edi + 8]
and al, 0xfb
mov esi, dword [esp + 0x28]
mov ecx, dword [ecx + 8]
mov byte [esi + 4], al
mov eax, dword [ecx + 0x30]
mov dword [esi + 0xc], eax
mov eax, esi
mov esi, dword [ebp + 8]
mov dword [ecx + 0x30], eax
mov ecx, dword [esp + 0x60]
cmp ecx, 4
jg 0x41e33b
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
jne 0x41e33b
cmp ecx, 2
jg 0x41e316
not ecx
mov dword [edx + 4], ecx
jmp 0x41eafa
mov eax, dword [esp + 0x58]
cmp ecx, 3
jne 0x41e32d
mov dword [edx], eax
mov dword [edx + 4], 0xfffffffb
jmp 0x41eafa
mov ecx, dword [esp + 0x5c]
mov dword [edx], eax
mov dword [edx + 4], ecx
jmp 0x41eafa
mov eax, dword [esp + 0x28]
mov dword [edx], eax
mov dword [edx + 4], 0xfffffff4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], 1
cmp dword [esp + 0x60], 0xd
je 0x41e3e6
lea eax, [esp + 0x58]
push eax
push edi
call fcn.0041d0a0
add esp, 8
cmp dword [esp + 0x60], 0xc
jne 0x41e38a
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x68]
je 0x41e3da
mov eax, dword [esp + 0x58]
cmp eax, dword [edi + 0x24]
jb 0x41e38a
push eax
jmp 0x41e3cc
lea eax, [esp + 0x58]
push eax
push edi
call fcn.0041d0a0
add esp, 8
cmp dword [esp + 0x60], 0xc
jne 0x41e3ab
mov eax, dword [esp + 0x58]
cmp eax, dword [edi + 0x24]
jb 0x41e3ab
dec dword [edi + 0x20]
mov edx, dword [edi + 0x20]
movzx eax, byte [edi + 0x42]
lea ecx, [edx + 1]
cmp ecx, eax
jbe 0x41e3c8
cmp ecx, 0xfa
jae 0x41ed18
mov byte [edi + 0x42], cl
mov dword [edi + 0x20], ecx
push edx
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.0041ee20
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], 0
mov eax, dword [ebp + 0xc]
cmp ecx, 4
jg 0x41eaeb
mov dword [eax + 8], 9
jne 0x41e42d
movsd xmm1, qword [esp + 0x10]
cvttsd2si ecx, xmm1
movzx eax, cl
cmp ecx, eax
jne 0x41e493
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jp 0x41e493
lea eax, [ecx + 0x100]
jmp 0x41eae3
cmp ecx, 3
jne 0x41e493
mov eax, dword [esp + 0x10]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x98]
push eax
push dword [edi]
mov dword [esp + 0xa4], 0xfffffffb
push dword [edi + 8]
call fcn.00410f00
mov ecx, eax
add esp, 0xc
cmp dword [ecx + 4], 0
jne 0x41e469
mov ecx, dword [ecx]
jmp 0x41e47e
mov eax, dword [edi + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x2c], eax
cmp ecx, 0xff
ja 0x41e493
mov eax, dword [ebp + 0xc]
not ecx
mov dword [eax + 4], ecx
jmp 0x41eaeb
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0041d0a0
add esp, 8
cmp dword [esp + 0x18], 0xc
jne 0x41e797
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
je 0x41eae3
mov dword [esp + 8], eax
cmp eax, dword [edi + 0x24]
jb 0x41e797
push eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0041ef40
add esp, 0xc
cmp dword [esp + 0x18], 0xa
jne 0x41e534
mov edx, dword [esp + 0x10]
cmp edx, 0xffffffff
je 0x41e534
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
jne 0x41e4f9
mov dword [esp + 0x1c], edx
jmp 0x41e534
mov esi, dword [edi + 0x34]
nop dword [eax]
movzx eax, word [esi + ecx*8 + 2]
sub eax, 0x8000
cmp eax, 0xffffffff
je 0x41e51b
inc eax
add eax, ecx
cmp eax, 0xffffffff
je 0x41e51b
mov ecx, eax
jmp 0x41e500
sub edx, ecx
add edx, 0x7fff
cmp edx, 0xffff
ja 0x41ed55
mov word [esi + ecx*8 + 2], dx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
cmp ecx, esi
je 0x41eac0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
cmp ecx, 0xffffffff
je 0x41e59f
mov edx, dword [edi + 0x34]
cmp ecx, 1
lea eax, [ecx - 1]
cmovb eax, ecx
mov eax, dword [edx + eax*8]
movzx edx, al
cmp edx, 0xc
je 0x41e585
cmp edx, 0xd
je 0x41e585
and eax, 0xff00
cmp eax, 0xff00
jne 0x41e5f8
mov edx, dword [edi + 0x34]
movzx eax, word [edx + ecx*8 + 2]
sub eax, 0x8000
cmp eax, 0xffffffff
je 0x41e59f
inc ecx
add ecx, eax
cmp ecx, 0xffffffff
jne 0x41e560
mov ecx, esi
cmp ecx, 0xffffffff
je 0x41e673
mov edx, dword [edi + 0x34]
nop dword [eax]
cmp ecx, 1
lea eax, [ecx - 1]
cmovb eax, ecx
mov eax, dword [edx + eax*8]
movzx edx, al
cmp edx, 0xc
je 0x41e5d5
cmp edx, 0xd
je 0x41e5d5
and eax, 0xff00
cmp eax, 0xff00
jne 0x41e5f8
mov edx, dword [edi + 0x34]
movzx eax, word [edx + ecx*8 + 2]
sub eax, 0x8000
cmp eax, 0xffffffff
je 0x41e673
inc ecx
add ecx, eax
cmp ecx, 0xffffffff
jne 0x41e5b0
jmp 0x41e673
cmp dword [esp + 0x18], 0xa
jne 0x41e609
mov dword [esp + 0xc], 0xffffffff
jmp 0x41e616
push edi
call fcn.0041c530
add esp, 4
mov dword [esp + 0xc], eax
mov esi, dword [esp + 8]
shl esi, 8
mov ecx, esi
or ecx, 0x1002b
push ecx
push edi
call fcn.0041be90
mov ecx, dword [edi + 0x20]
shl ecx, 8
or ecx, 0x80010058
mov dword [esp + 0x48], eax
push ecx
push edi
call fcn.0041be90
or esi, 0x2002b
push esi
push edi
call fcn.0041be90
mov ecx, dword [edi + 0x14]
push dword [esp + 0x24]
mov dword [edi + 0x18], ecx
lea ecx, [edi + 0x1c]
push ecx
push edi
mov dword [esp + 0x50], eax
call fcn.0041fee0
mov esi, dword [esp + 0x44]
add esp, 0x24
mov dword [esp + 0xc], esi
mov eax, dword [edi + 0x14]
mov dword [esp + 0x48], eax
mov dword [edi + 0x18], eax
cmp esi, 0xffffffff
je 0x41e78e
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + esi*8]
mov eax, edx
shr eax, 0x10
sub eax, 0x8000
shr edx, 8
mov dword [esp + 0x50], edx
cmp eax, 0xffffffff
jne 0x41e6a6
or eax, eax
jmp 0x41e6a9
inc eax
add eax, esi
cmp esi, 1
mov dword [esp + 0x44], eax
lea edx, [esi - 1]
cmovb edx, esi
mov eax, dword [ecx + edx*8]
movzx esi, al
mov dword [esp + 0x54], esi
cmp esi, 0xc
je 0x41e72c
cmp esi, 0xd
je 0x41e72c
shr eax, 8
cmp al, 0xff
jne 0x41e70b
mov eax, dword [esp + 8]
cmp eax, 0xff
jne 0x41e6f0
mov eax, dword [esp + 0x50]
movzx eax, al
shl eax, 8
or eax, 0x80000058
mov dword [ecx + edx*8], eax
jmp 0x41e755
mov byte [ecx + edx*8 + 1], al
movzx eax, byte [ecx + edx*8 + 9]
cmp dword [esp + 8], eax
jb 0x41e755
mov al, byte [esp + 8]
inc al
mov byte [ecx + edx*8 + 9], al
jmp 0x41e755
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
sub eax, edx
add eax, 0x7fff
cmp eax, 0xffff
ja 0x41ed55
mov word [ecx + edx*8 + 2], ax
jmp 0x41e779
mov esi, dword [esp + 8]
cmp esi, 0xff
je 0x41e747
shr eax, 0x10
cmp esi, eax
je 0x41e747
mov eax, esi
mov byte [ecx + edx*8 + 1], al
jmp 0x41e755
mov eax, dword [esp + 0x54]
add al, 2
mov byte [ecx + edx*8 + 1], 0
mov byte [ecx + edx*8], al
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0xc]
sub ecx, edx
add ecx, 0x7fff
cmp ecx, 0xffff
ja 0x41ed55
mov eax, dword [edi + 0x34]
mov word [eax + edx*8 + 2], cx
mov esi, dword [esp + 0x44]
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
jne 0x41e686
mov eax, dword [esp + 0x48]
push dword [esp + 0x2c]
jmp 0x41eaae
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0041d0a0
add esp, 8
cmp dword [esp + 0x18], 0xc
jne 0x41e7b8
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x24]
jb 0x41e7b8
dec dword [edi + 0x20]
mov edx, dword [edi + 0x20]
movzx eax, byte [edi + 0x42]
mov dword [esp + 8], edx
lea ecx, [edx + 1]
cmp ecx, eax
jbe 0x41e7d9
cmp ecx, 0xfa
jae 0x41ed18
mov byte [edi + 0x42], cl
push edx
lea eax, [esp + 0x14]
mov dword [edi + 0x20], ecx
push eax
push edi
call fcn.0041ef40
add esp, 0xc
cmp dword [esp + 0x18], 0xa
jne 0x41e844
mov edx, dword [esp + 0x10]
cmp edx, 0xffffffff
je 0x41e844
mov ecx, dword [esp + 0x1c]
cmp ecx, 0xffffffff
jne 0x41e80a
mov dword [esp + 0x1c], edx
jmp 0x41e844
mov esi, dword [edi + 0x34]
nop dword [eax]
movzx eax, word [esi + ecx*8 + 2]
sub eax, 0x8000
cmp eax, 0xffffffff
je 0x41e82b
inc eax
add eax, ecx
cmp eax, 0xffffffff
je 0x41e82b
mov ecx, eax
jmp 0x41e810
sub edx, ecx
add edx, 0x7fff
cmp edx, 0xffff
ja 0x41ed55
mov word [esi + ecx*8 + 2], dx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
cmp ecx, esi
je 0x41eac0
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
cmp ecx, 0xffffffff
je 0x41e8b3
mov edx, dword [edi + 0x34]
cmp ecx, 1
lea eax, [ecx - 1]
cmovb eax, ecx
mov eax, dword [edx + eax*8]
movzx edx, al
cmp edx, 0xc
je 0x41e899
cmp edx, 0xd
je 0x41e899
and eax, 0xff00
cmp eax, 0xff00
jne 0x41e909
mov edx, dword [edi + 0x34]
movzx eax, word [edx + ecx*8 + 2]
sub eax, 0x8000
cmp eax, 0xffffffff
je 0x41e8b3
inc ecx
add ecx, eax
cmp ecx, 0xffffffff
jne 0x41e870
mov ecx, esi
cmp ecx, 0xffffffff
je 0x41e984
mov edx, dword [edi + 0x34]
cmp ecx, 1
lea eax, [ecx - 1]
cmovb eax, ecx
mov eax, dword [edx + eax*8]
movzx edx, al
cmp edx, 0xc
je 0x41e8e6
cmp edx, 0xd
je 0x41e8e6
and eax, 0xff00
cmp eax, 0xff00
jne 0x41e909
mov edx, dword [edi + 0x34]
movzx eax, word [edx + ecx*8 + 2]
sub eax, 0x8000
cmp eax, 0xffffffff
je 0x41e984
inc ecx
add ecx, eax
cmp ecx, 0xffffffff
jne 0x41e8c1
jmp 0x41e984
cmp dword [esp + 0x18], 0xa
jne 0x41e91a
mov dword [esp + 0x2c], 0xffffffff
jmp 0x41e927
push edi
call fcn.0041c530
add esp, 4
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 8]
shl esi, 8
mov ecx, esi
or ecx, 0x1002b
push ecx
push edi
call fcn.0041be90
mov ecx, dword [edi + 0x20]
shl ecx, 8
or ecx, 0x80010058
mov dword [esp + 0x50], eax
push ecx
push edi
call fcn.0041be90
or esi, 0x2002b
push esi
push edi
call fcn.0041be90
mov ecx, dword [edi + 0x14]
push dword [esp + 0x44]
mov dword [edi + 0x18], ecx
lea ecx, [edi + 0x1c]
push ecx
push edi
mov dword [esp + 0x64], eax
call fcn.0041fee0
mov esi, dword [esp + 0x44]
add esp, 0x24
mov dword [esp + 0xc], esi
mov eax, dword [edi + 0x14]
mov dword [esp + 0x44], eax
mov dword [edi + 0x18], eax
cmp esi, 0xffffffff
je 0x41eaaa
mov ecx, dword [edi + 0x34]
mov edx, dword [ecx + esi*8]
mov eax, edx
shr eax, 0x10
sub eax, 0x8000
shr edx, 8
mov dword [esp + 0x54], edx
cmp eax, 0xffffffff
jne 0x41e9b7
or eax, eax
jmp 0x41e9ba
inc eax
add eax, esi
cmp esi, 1
mov dword [esp + 0x2c], eax
lea edx, [esi - 1]
cmovb edx, esi
mov eax, dword [ecx + edx*8]
movzx esi, al
mov dword [esp + 0x50], esi
cmp esi, 0xc
je 0x41ea48
cmp esi, 0xd
je 0x41ea48
shr eax, 8
cmp al, 0xff
jne 0x41ea27
mov eax, dword [esp + 8]
cmp eax, 0xff
jne 0x41ea0c
mov eax, dword [esp + 0x54]
movzx eax, al
shl eax, 8
or eax, 0x80000058
mov dword [ecx + edx*8], eax
jmp 0x41ea71
mov byte [ecx + edx*8 + 1], al
movzx eax, byte [ecx + edx*8 + 9]
cmp dword [esp + 8], eax
jb 0x41ea71
mov al, byte [esp + 8]
inc al
mov byte [ecx + edx*8 + 9], al
jmp 0x41ea71
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0xc]
sub eax, edx
add eax, 0x7fff
cmp eax, 0xffff
ja 0x41ed55
mov word [ecx + edx*8 + 2], ax
jmp 0x41ea95
mov esi, dword [esp + 8]
cmp esi, 0xff
je 0x41ea63
shr eax, 0x10
cmp esi, eax
je 0x41ea63
mov eax, esi
mov byte [ecx + edx*8 + 1], al
jmp 0x41ea71
mov eax, dword [esp + 0x50]
add al, 2
mov byte [ecx + edx*8 + 1], 0
mov byte [ecx + edx*8], al
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0xc]
sub ecx, edx
add ecx, 0x7fff
cmp ecx, 0xffff
ja 0x41ed55
mov eax, dword [edi + 0x34]
mov word [eax + edx*8 + 2], cx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
jne 0x41e997
mov eax, dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0xc]
push eax
push dword [esp + 0x28]
push edi
call fcn.004200e0
add esp, 0x14
mov eax, dword [esp + 8]
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, ecx
lea ecx, [esp + 0x58]
push ecx
push eax
push edi
call fcn.0041c810
add esp, 0xc
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
cmp eax, 0x2c
je 0x41eb0e
cmp eax, 0x3b
jne 0x41eb25
push esi
call fcn.004169d0
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, 0x7d
jne 0x41dfa0
jmp 0x41eb2e
cmp eax, 0x7d
jne 0x41ecdf
push esi
call fcn.004169d0
add esp, 4
cmp dword [esp + 0x38], 0
je 0x41ebe2
mov edx, dword [esp + 0x34]
mov esi, dword [edi + 0x34]
mov ecx, dword [edi + 0x14]
add esi, 0xfffffff8
mov dword [esp + 0xa8], 4
mov dword [esp + 0xac], 0xffffffff
lea eax, [edx - 1]
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0xa0], eax
lea esi, [esi + ecx*8]
mov dword [esp + 0xa4], 0x43300000
cmp edx, 0x100
jbe 0x41eb99
lea eax, [ecx - 1]
sub esi, 8
mov dword [edi + 0x14], eax
lea eax, [esp + 0xa0]
push eax
push dword [edi]
push dword [edi + 8]
call fcn.00410f00
mov ecx, eax
add esp, 0xc
cmp dword [ecx + 4], 0
jne 0x41ebba
mov ecx, dword [ecx]
jmp 0x41ebcf
mov eax, dword [edi + 0x28]
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov ecx, dword [edi + 0x28]
lea eax, [ecx + 1]
mov dword [edi + 0x28], eax
shl ecx, 8
or ecx, dword [esp + 0x4c]
shl ecx, 8
or ecx, 0x3f
mov byte [esi - 5], 0
mov dword [esi], ecx
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x74]
dec eax
cmp esi, eax
jne 0x41ebfd
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, 0xb
dec dword [edi + 0x20]
jmp 0x41ec02
mov eax, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x41ec80
cmp dword [esp + 0x3c], 0
mov ecx, dword [edi + 0x34]
jne 0x41ec22
xor edx, edx
jmp 0x41ec3c
mov edx, dword [esp + 0x34]
cmp edx, 3
jae 0x41ec32
mov edx, 3
jmp 0x41ec3c
mov eax, 0x7ff
cmp edx, eax
cmova edx, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41ec6e
cmp eax, 1
jne 0x41ec59
shl eax, 0xb
or eax, edx
mov word [ecx + esi*8 + 2], ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
dec eax
bsr eax, eax
inc eax
shl eax, 0xb
or eax, edx
mov word [ecx + esi*8 + 2], ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
shl eax, 0xb
or eax, edx
mov word [ecx + esi*8 + 2], ax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x3c], 0
je 0x41eca2
mov eax, dword [esp + 0x34]
cmp dword [ecx + 0x18], eax
jae 0x41eca2
dec eax
push eax
push ecx
push dword [edi + 8]
call fcn.00410bf0
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp dword [esp + 0x78], 0
je 0x41ecc6
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x1c]
add eax, 4
inc ecx
cmp dword [eax], 0xfffffff4
jne 0x41ecbe
mov dword [eax], 0xffffffff
add eax, 0x18
sub ecx, 1
jne 0x41ecb3
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x14]
cmp eax, dword [edx + 0x18]
jb 0x41ec7a
call fcn.0040e2f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x7c]
push 0x7d
push esi
cmp eax, dword [esi + 0x44]
je 0x41ed62
call fcn.00416ba0
mov edi, dword [ebp + 8]
mov esi, eax
push 0x7b
push edi
call fcn.00416ba0
add esp, 0x10
push dword [esp + 0x7c]
push eax
push esi
push 0xa3d
push dword [edi + 0x24]
push edi
call fcn.004168e0
push 0x9a9
push dword [edi + 4]
call fcn.0041ccc0
push 0x7b
push esi
call fcn.0041cce0
push 0x9a9
push dword [esi + 4]
call fcn.0041ccc0
push 0x5d
push esi
call fcn.0041cce0
push 0x11f
push esi
call fcn.0041cce0
push 0x3d
push esi
call fcn.0041cce0
push 0x98e
push dword [edi + 4]
call fcn.0041ccc0
call fcn.0041cce0
int3