Function at 0x41e0b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x34], eax
jne 0x41e514
mov ecx, dword [esi]
test cl, 8
je 0x41e0ef
mov eax, 0xd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov eax, dword [esp + 0x194]
and ecx, 0xffffff0f
mov edx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x1c], eax
and eax, 0xffffffcf
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x60], 0
mov dword [esi], ecx
mov dword [esp + 0x30], edx
sub eax, 1
je 0x41e30f
sub eax, 1
je 0x41e1da
sub eax, 6
je 0x41e1b0
mov ebp, dword [esp + 0x188]
test ebp, ebp
je 0x41e514
mov edx, dword [esp + 0x18c]
mov eax, edx
mov ebx, dword [esp + 0x190]
or eax, ebx
je 0x41e514
mov dword [esi + 0x64], ebp
or ecx, 0xa0
mov ebp, dword [esp + 0x34]
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], ebx
mov dword [esi], ecx
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esp + 0x14], ebp
jmp 0x41e2b8
mov eax, dword [esp + 0x34]
mov dword [esi + 0x64], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esp + 0x2c], 0x41c00010
mov dword [esp + 0x14], eax
jmp 0x41e38e
mov ebx, dword [esp + 0x188]
test ebx, ebx
je 0x41e514
test byte [esp + 0x1c], 0x10
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push ebx
je 0x41e208
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41e20e
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x64], eax
cmp eax, 0xffffffff
jne 0x41e228
mov ebp, 1
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
push 1
lea ecx, [esp + 0x24]
xorps xmm0, xmm0
push ecx
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41e283
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x44]
mov eax, dword [esp + 0x20]
or dword [esi], 0x20
mov dword [esi + 0x1c], ecx
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.0041b200
mov ebp, eax
test ebp, ebp
je 0x41e29f
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], 0xffffffff
or dword [esi], 0x40
xor eax, eax
test edi, edi
mov dword [esp + 0x14], eax
cmovne ebx, edi
mov edi, ebx
test byte [esi], 0x20
jne 0x41e40f
test byte [esp + 0x1c], 0x10
mov dword [esp + 0x2c], 0x81800000
push edi
je 0x41e35f
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea ecx, [edi + eax*2]
movzx eax, word [ecx]
cmp eax, 0x2e
je 0x41e38e
cmp ecx, edi
jbe 0x41e386
cmp ax, 0x2f
je 0x41e386
cmp ax, 0x5c
je 0x41e386
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, 0x2e
jne 0x41e2e2
jmp 0x41e38e
mov eax, dword [esp + 0x188]
mov dword [esi + 0x64], eax
test eax, eax
je 0x41e514
cmp eax, 0xffffffff
je 0x41e514
push dword [esp + 0x190]
lea edx, [esp + 0x48]
mov ecx, esi
push dword [esp + 0x190]
call fcn.0041dce0
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x41e2af
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
call dword [esp + 0x34]
lea ecx, [edi - 1]
add ecx, eax
mov al, byte [ecx]
cmp al, 0x2e
je 0x41e38e
nop
cmp ecx, edi
jbe 0x41e386
cmp al, 0x2f
je 0x41e386
cmp al, 0x5c
je 0x41e386
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x2e
jne 0x41e370
jmp 0x41e38e
mov dword [esp + 0x2c], 0x81c00000
test byte [esp + 0x1c], 0x20
jne 0x41e405
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004bd880
movzx ebx, word [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x38], ecx
movzx ecx, word [esp + 0x18]
shl ebx, 0x10
or ebx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ebx
jmp 0x41e433
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x18], ebx
jmp 0x41e41f
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38], ecx
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add eax, 0x161
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
mov dword [esp + 0x5c], ebp
test ebp, ebp
jne 0x41e46f
lea edi, [eax + 2]
jmp 0x41e519
push 0x150
push 0
push ebp
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, eax
and ecx, 0x20
mov dword [esp + 0x20], ecx
je 0x41e4c6
mov eax, 8
mov bh, 8
mov word [ebp + 2], ax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], ecx
or dword [esi], 0x80000000
mov byte [esp + 0x10], bh
jmp 0x41e904
and eax, 0x10
lea ebx, [ebp + 0x48]
mov dword [esp + 0x58], eax
je 0x41e4f9
push 0
push 0
push 0x104
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x20], eax
test eax, eax
je 0x41e50d
dec eax
mov dword [ebp + 0x20], eax
jmp 0x41e509
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call dword [esp + 0x34]
mov dword [ebp + 0x20], eax
test eax, eax
jne 0x41e532
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, 9
test byte [esi], 0x40
je 0x41e525
push dword [esi + 0x64]
call dword [esp + 0x38]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov eax, ebx
mov cl, byte [eax]
test cl, cl
je 0x41e550
nop word [eax + eax]
cmp cl, 0x5c
jne 0x41e548
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41e540
mov edx, dword [esp + 0x38]
lea ecx, [ebp + 0x150]
mov eax, 8
mov byte [esp + 0x65], dl
mov word [ebp], ax
xor edi, edi
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0x34], eax
lea eax, [esp + 0x60]
mov dword [ebp + 0x40], eax
mov eax, edx
shr eax, 8
mov byte [esp + 0x66], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x67], al
shr edx, 0x18
mov byte [esp + 0x68], dl
mov edx, dword [esp + 0x3c]
mov eax, edx
shr eax, 8
mov byte [esp + 0x6a], al
mov eax, edx
mov byte [esp + 0x69], dl
shr eax, 0x10
mov byte [esp + 0x6b], al
shr edx, 0x18
mov byte [esp + 0x6c], dl
mov edx, dword [esp + 0x40]
mov eax, edx
shr eax, 8
mov byte [esp + 0x6e], al
mov eax, edx
mov byte [esp + 0x6d], dl
mov dword [esp + 0x60], 0xd5455
mov byte [esp + 0x64], 7
movq xmm0, qword [esp + 0x60]
shr eax, 0x10
mov byte [esp + 0x6f], al
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x24], 0x11
mov dword [ebp + 0x28], 9
shr edx, 0x18
mov byte [esp + 0x70], dl
movq qword [ecx], xmm0
mov al, byte [esp + 0x68]
mov byte [ecx + 8], al
mov byte [ecx + 2], 5
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x14], edi
mov byte [esp + 0x10], 0
mov byte [eax + 4], 1
cmp dword [esp + 0x58], edi
je 0x41e6a7
mov ecx, dword [ebp + 0x20]
mov edx, ebx
push ecx
mov word [esp + 0x75], 0x7075
mov byte [esp + 0x79], 1
lea eax, [ecx + 0x1b]
mov dword [ebp + 0x24], eax
lea eax, [ecx + 0x13]
mov dword [ebp + 0x28], eax
lea eax, [ecx + 0xa]
mov byte [esp + 0x77], al
lea eax, [ecx + 0xa]
shr eax, 8
xor ecx, ecx
mov byte [esp + 0x78], al
call fcn.0041d870
mov ecx, eax
mov byte [esp + 0x7a], al
shr ecx, 8
add esp, 4
mov byte [esp + 0x77], cl
mov ecx, eax
shr eax, 0x18
mov byte [esp + 0x79], al
mov eax, dword [ebp + 0x40]
shr ecx, 0x10
mov byte [esp + 0x78], cl
mov ecx, dword [ebp + 0x44]
movq xmm0, qword [eax + 0x11]
movq qword [ecx + 9], xmm0
mov al, byte [eax + 0x19]
mov byte [ecx + 0x11], al
mov eax, dword [ebp + 0x20]
inc eax
push eax
mov eax, dword [ebp + 0x44]
add eax, 0x12
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp dword [esi], edi
jge 0x41e6ca
mov dword [ebp + 0x24], edi
mov ax, word [ebp]
mov bh, 8
mov word [ebp + 0x30], ax
mov eax, 8
mov byte [esp + 0x10], bh
mov word [ebp + 2], ax
jmp 0x41e773
test byte [esp + 0x1c], 8
je 0x41e6e5
mov eax, dword [ebp + 0x20]
cmp byte [eax + ebp + 0x47], 0x2f
je 0x41e742
mov byte [eax + ebp + 0x48], 0x2f
inc dword [ebp + 0x20]
jmp 0x41e742
cmp dword [esi + 8], edi
je 0x41e6fb
mov eax, 9
mov dword [esp + 0x14], 0xc
mov word [ebp], ax
push ebx
call dword [esp + 0x34]
lea edi, [ebx + eax]
cmp edi, ebx
jbe 0x41e711
cmp byte [edi], 0x2e
je 0x41e718
dec edi
cmp edi, ebx
ja 0x41e707
jne 0x41e718
cmp byte [edi], 0x2e
jne 0x41e6ae
mov ebx, 0x4c1f50
nop dword [eax]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41e73e
push ebx
call dword [esp + 0x34]
inc ebx
add ebx, eax
cmp byte [ebx], 0
jne 0x41e720
jmp 0x41e6ae
mov edi, dword [esp + 0x14]
movzx ecx, word [ebp]
lea eax, [ebp + 2]
xor edx, edx
mov word [ebp + 0x30], cx
mov word [eax], dx
mov edx, dword [esi + 0x50]
mov eax, edx
mov ebx, dword [esi + 0x54]
and eax, ebx
cmp eax, 0xffffffff
je 0x41e76f
mov eax, edi
xor ecx, ecx
add eax, edx
mov dword [ebp + 0x10], eax
adc ecx, ebx
mov dword [ebp + 0x14], ecx
mov bh, byte [esp + 0x10]
mov eax, dword [esi + 0x50]
mov edx, esi
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x18], eax
mov ecx, dword [esi + 0x18]
add ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
adc eax, dword [esi + 0x14]
mov dword [ebp + 0x38], ecx
mov ecx, ebp
mov dword [ebp + 0x3c], eax
mov dword [esi + 0x20], 0
call fcn.0041cf20
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41ec15
mov edx, dword [esi]
mov ecx, dword [ebp + 0x20]
test edx, edx
jns 0x41e7c3
lea eax, [ecx + 0xb]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
jmp 0x41e906
mov eax, dword [ebp + 0x24]
add eax, 0x32
add eax, ecx
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
cmp dword [esp + 0x14], 0
je 0x41e906
mov edx, dword [esi + 8]
mov dword [esi + 0x38], 0x12345678
mov dword [esi + 0x3c], 0x23456789
mov dword [esi + 0x40], 0x34567890
test edx, edx
je 0x41e84b
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x41e84b
mov ecx, dword [esi + 0x38]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3958]
movzx eax, cl
add eax, dword [esi + 0x3c]
imul eax, eax, 0x8088405
mov dword [esi + 0x38], ecx
mov ecx, dword [esi + 0x40]
inc eax
mov dword [esi + 0x3c], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4c3958]
mov dword [esi + 0x40], ecx
add edx, 1
jne 0x41e800
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
xor edi, edi
call ebx
sar eax, 7
mov byte [esp + edi + 0x44], al
inc edi
cmp edi, 0xc
jl 0x41e853
mov al, byte [ebp + 5]
xor ebp, ebp
mov byte [esp + 0x4f], al
nop dword [eax + eax]
mov bl, byte [esp + ebp + 0x44]
mov ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x40]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c3958]
movzx eax, cl
add eax, dword [esi + 0x3c]
imul eax, eax, 0x8088405
mov dword [esi + 0x38], ecx
inc eax
mov dword [esi + 0x3c], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x4c3958]
mov eax, edi
xor eax, 1
mov dword [esi + 0x40], edx
imul eax, edi
shr eax, 8
xor al, bl
mov byte [esp + ebp + 0x44], al
inc ebp
cmp ebp, 0xc
jl 0x41e870
push 0xc
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.0041dad0
mov edi, dword [esi + 0x20]
add esp, 4
mov ebp, dword [esp + 0x5c]
test edi, edi
jne 0x41ec15
add dword [esi + 0x10], 0xc
mov bh, byte [esp + 0x10]
adc dword [esi + 0x14], 0
or dword [esi], 0x10
mov edx, dword [esi]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x41e9e3
mov ecx, esi
cmp bh, 8
jne 0x41e924
mov edx, ebp
call fcn.0041de30
jmp 0x41e9a8
test dl, dl
jns 0x41e958
mov edi, dword [esi + 0x68]
mov edx, eax
push edi
call fcn.0041dad0
mov edx, dword [esi + 0x64]
add esp, 4
add dword [esi + 0x58], edi
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.0041d870
add esp, 4
mov dword [esi + 0x60], eax
add dword [esi + 0x70], edi
adc dword [esi + 0x74], 0
jmp 0x41e9a1
lea ebx, [esi + 0x84]
push 0x4000
mov edx, ebx
call fcn.0041dd70
mov edi, eax
add esp, 4
test edi, edi
je 0x41e99d
cmp dword [esi + 0x20], 0
jne 0x41e99d
push edi
mov edx, ebx
mov ecx, esi
call fcn.0041dad0
add esp, 4
mov edx, ebx
mov ecx, esi
push 0x4000
call fcn.0041dd70
mov edi, eax
add esp, 4
test edi, edi
jne 0x41e973
mov bh, byte [esp + 0x10]
add dword [esi + 0x78], edi
adc dword [esi + 0x7c], 0
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41ec15
and dword [esi], 0xffffffef
mov edx, dword [esi]
test dl, 0x40
je 0x41e9c6
push dword [esi + 0x64]
call dword [esp + 0x38]
mov edx, dword [esi]
mov eax, dword [esi + 0x58]
and edx, 0xffffffbf
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x78]
add dword [esi + 0x10], eax
mov eax, dword [esi + 0x7c]
adc dword [esi + 0x14], eax
mov dword [esi], edx
mov dword [esi + 0x54], ecx
test edx, edx
jns 0x41ea3f
or edx, 8
cmp dword [esp + 0x20], 0
mov dword [esi], edx
jne 0x41ec03
mov edx, dword [esi + 0x60]
mov ecx, esi
call fcn.0041d960
movzx edx, word [esi + 0x62]
mov ecx, esi
call fcn.0041d960
mov edx, dword [esi + 0x58]
mov ecx, esi
call fcn.0041d960
mov edx, dword [esi + 0x58]
mov ecx, esi
mov eax, dword [esi + 0x5c]
shrd edx, eax, 0x10
call fcn.0041d960
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41ec15
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov eax, edx
mov edi, ecx
add eax, dword [esi + 0x78]
adc edi, dword [esi + 0x7c]
cmp dword [ebp + 0x10], eax
jne 0x41ea5d
cmp dword [ebp + 0x14], edi
jne 0x41ea5d
mov bl, 1
jmp 0x41ea5f
xor bl, bl
mov eax, dword [esi + 0x60]
mov dword [ebp + 8], eax
mov eax, edx
add eax, dword [esi + 0x78]
adc ecx, dword [esi + 0x7c]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
test byte [esi], 4
je 0x41eb0a
test edx, edx
jne 0x41eb0a
movzx eax, bh
mov word [ebp + 2], ax
movzx eax, word [ebp]
mov ecx, eax
test al, 1
jne 0x41eaad
and eax, 0xfff7
mov word [ebp], ax
movzx ecx, ax
mov eax, dword [ebp + 0x3c]
mov word [ebp + 0x30], cx
mov ecx, dword [ebp + 0x38]
sub ecx, dword [esi + 0x18]
sbb eax, dword [esi + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0041dc40
add esp, 8
test eax, eax
je 0x41eaf9
mov edx, esi
mov ecx, ebp
call fcn.0041cf20
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41ec15
push dword [esi + 0x14]
mov ecx, esi
push dword [esi + 0x10]
call fcn.0041dc40
add esp, 8
test eax, eax
jne 0x41ebd0
mov edi, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41e519
movzx eax, bh
cmp word [ebp + 2], ax
jne 0x41ec10
test bh, bh
jne 0x41eb23
test bl, bl
je 0x41ec10
mov edx, 0x8074b50
mov ecx, esi
call fcn.0041d960
mov edx, 0x807
mov ecx, esi
call fcn.0041d960
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.0041d960
movzx edx, word [ebp + 0xa]
mov ecx, esi
call fcn.0041d960
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp + 0x10]
ja 0x41eb71
cmp edx, 0xffffffff
jae 0x41eb71
mov ecx, esi
call fcn.0041d960
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
shrd edx, eax, 0x10
jmp 0x41eb7e
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d960
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d960
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x18]
ja 0x41eba6
cmp edx, 0xffffffff
jae 0x41eba6
mov ecx, esi
call fcn.0041d960
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
shrd edx, eax, 0x10
jmp 0x41ebb3
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d960
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d960
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41ec15
add dword [esi + 0x10], 0x10
adc dword [esi + 0x14], edi
mov ax, word [ebp + 0x30]
mov word [ebp], ax
mov ecx, dword [esi + 0x4c]
test ecx, ecx
jne 0x41ebe7
mov dword [esi + 0x4c], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x174
ret
mov eax, dword [ecx + 0x14c]
test eax, eax
je 0x41ebfd
mov ecx, eax
mov eax, dword [ecx + 0x14c]
test eax, eax
jne 0x41ebf1
mov dword [ecx + 0x14c], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x174
ret
mov edi, 0x11
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41e519