Function at 0x41d990
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 0x41ddf4
mov ecx, dword [esi]
test cl, 8
je 0x41d9cf
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 0x41dbef
sub eax, 1
je 0x41daba
sub eax, 6
je 0x41da90
mov ebp, dword [esp + 0x188]
test ebp, ebp
je 0x41ddf4
mov edx, dword [esp + 0x18c]
mov eax, edx
mov ebx, dword [esp + 0x190]
or eax, ebx
je 0x41ddf4
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 0x41db98
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 0x41dc6e
mov ebx, dword [esp + 0x188]
test ebx, ebx
je 0x41ddf4
test byte [esp + 0x1c], 0x10
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push ebx
je 0x41dae8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x41daee
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x64], eax
cmp eax, 0xffffffff
jne 0x41db08
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 0x41db63
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.0041aae0
mov ebp, eax
test ebp, ebp
je 0x41db7f
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 0x41dcef
test byte [esp + 0x1c], 0x10
mov dword [esp + 0x2c], 0x81800000
push edi
je 0x41dc3f
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
lea ecx, [edi + eax*2]
movzx eax, word [ecx]
cmp eax, 0x2e
je 0x41dc6e
cmp ecx, edi
jbe 0x41dc66
cmp ax, 0x2f
je 0x41dc66
cmp ax, 0x5c
je 0x41dc66
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, 0x2e
jne 0x41dbc2
jmp 0x41dc6e
mov eax, dword [esp + 0x188]
mov dword [esi + 0x64], eax
test eax, eax
je 0x41ddf4
cmp eax, 0xffffffff
je 0x41ddf4
push dword [esp + 0x190]
lea edx, [esp + 0x48]
mov ecx, esi
push dword [esp + 0x190]
call fcn.0041d5c0
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x41db8f
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 0x41dc6e
nop
cmp ecx, edi
jbe 0x41dc66
cmp al, 0x2f
je 0x41dc66
cmp al, 0x5c
je 0x41dc66
mov al, byte [ecx - 1]
dec ecx
cmp al, 0x2e
jne 0x41dc50
jmp 0x41dc6e
mov dword [esp + 0x2c], 0x81c00000
test byte [esp + 0x1c], 0x20
jne 0x41dce5
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.004cd2f0
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 0x41dd13
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x18], ebx
jmp 0x41dcff
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 0x41dd4f
lea edi, [eax + 2]
jmp 0x41ddf9
push 0x150
push 0
push ebp
call fcn.004b4390
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, eax
and ecx, 0x20
mov dword [esp + 0x20], ecx
je 0x41dda6
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 0x41e1e0
and eax, 0x10
lea ebx, [ebp + 0x48]
mov dword [esp + 0x58], eax
je 0x41ddd9
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 0x41dded
dec eax
mov dword [ebp + 0x20], eax
jmp 0x41dde9
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 0x41de12
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, 9
test byte [esi], 0x40
je 0x41de05
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 0x41de30
nop word [eax + eax]
cmp cl, 0x5c
jne 0x41de28
mov byte [eax], 0x2f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41de20
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 0x41df87
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.0041d150
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 fcn.004b4620
add esp, 0xc
cmp dword [esi], edi
jge 0x41dfaa
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 0x41e053
test byte [esp + 0x1c], 8
je 0x41dfc5
mov eax, dword [ebp + 0x20]
cmp byte [eax + ebp + 0x47], 0x2f
je 0x41e022
mov byte [eax + ebp + 0x48], 0x2f
inc dword [ebp + 0x20]
jmp 0x41e022
cmp dword [esi + 8], edi
je 0x41dfdb
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 0x41dff1
cmp byte [edi], 0x2e
je 0x41dff8
dec edi
cmp edi, ebx
ja 0x41dfe7
jne 0x41dff8
cmp byte [edi], 0x2e
jne 0x41df8e
mov ebx, 0x4d6618
nop dword [eax]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41e01e
push ebx
call dword [esp + 0x34]
inc ebx
add ebx, eax
cmp byte [ebx], 0
jne 0x41e000
jmp 0x41df8e
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 0x41e04f
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.0041c800
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41e4f4
mov edx, dword [esi]
mov ecx, dword [ebp + 0x20]
test edx, edx
jns 0x41e0a3
lea eax, [ecx + 0xb]
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], eax
jmp 0x41e1e2
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 0x41e1e2
mov edx, dword [esi + 8]
mov dword [esi + 0x38], 0x12345678
mov dword [esi + 0x3c], 0x23456789
mov dword [esi + 0x40], 0x34567890
test edx, edx
je 0x41e12b
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x41e12b
mov ecx, dword [esi + 0x38]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d8010]
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 + 0x4d8010]
mov dword [esi + 0x40], ecx
add edx, 1
jne 0x41e0e0
xor edi, edi
nop dword [eax]
call fcn.004b9dbb
sar eax, 7
mov byte [esp + edi + 0x44], al
inc edi
cmp edi, 0xc
jl 0x41e130
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 + 0x4d8010]
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 + 0x4d8010]
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 0x41e150
push 0xc
lea edx, [esp + 0x48]
mov ecx, esi
call fcn.0041d3b0
mov edi, dword [esi + 0x20]
add esp, 4
mov ebp, dword [esp + 0x5c]
test edi, edi
jne 0x41e4f4
add dword [esi + 0x10], 0xc
adc dword [esi + 0x14], 0
or dword [esi], 0x10
mov edx, dword [esi]
mov eax, dword [esi + 0x64]
test eax, eax
je 0x41e2c0
mov ecx, esi
cmp bh, 8
jne 0x41e200
mov edx, ebp
call fcn.0041d710
jmp 0x41e285
test dl, dl
jns 0x41e234
mov edi, dword [esi + 0x68]
mov edx, eax
push edi
call fcn.0041d3b0
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.0041d150
add esp, 4
mov dword [esi + 0x60], eax
add dword [esi + 0x70], edi
adc dword [esi + 0x74], 0
jmp 0x41e27e
lea ebx, [esi + 0x84]
push 0x4000
mov edx, ebx
call fcn.0041d650
mov edi, eax
add esp, 4
test edi, edi
je 0x41e27a
nop
cmp dword [esi + 0x20], 0
jne 0x41e27a
push edi
mov edx, ebx
mov ecx, esi
call fcn.0041d3b0
add esp, 4
mov edx, ebx
mov ecx, esi
push 0x4000
call fcn.0041d650
mov edi, eax
add esp, 4
test edi, edi
jne 0x41e250
mov bh, byte [esp + 0x10]
add dword [esi + 0x78], edi
adc dword [esi + 0x7c], 0
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41e4f4
and dword [esi], 0xffffffef
mov edx, dword [esi]
test dl, 0x40
je 0x41e2a3
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 0x41e31c
or edx, 8
cmp dword [esp + 0x20], 0
mov dword [esi], edx
jne 0x41e4e2
mov edx, dword [esi + 0x60]
mov ecx, esi
call fcn.0041d240
movzx edx, word [esi + 0x62]
mov ecx, esi
call fcn.0041d240
mov edx, dword [esi + 0x58]
mov ecx, esi
call fcn.0041d240
mov edx, dword [esi + 0x58]
mov ecx, esi
mov eax, dword [esi + 0x5c]
shrd edx, eax, 0x10
call fcn.0041d240
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41e4f4
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 0x41e33a
cmp dword [ebp + 0x14], edi
jne 0x41e33a
mov bl, 1
jmp 0x41e33c
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 0x41e3e7
test edx, edx
jne 0x41e3e7
movzx eax, bh
mov word [ebp + 2], ax
movzx eax, word [ebp]
mov ecx, eax
test al, 1
jne 0x41e38a
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.0041d520
add esp, 8
test eax, eax
je 0x41e3d6
mov edx, esi
mov ecx, ebp
call fcn.0041c800
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41e4f4
push dword [esi + 0x14]
mov ecx, esi
push dword [esi + 0x10]
call fcn.0041d520
add esp, 8
test eax, eax
jne 0x41e4ad
mov edi, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41ddf9
movzx eax, bh
cmp word [ebp + 2], ax
jne 0x41e4ef
test bh, bh
jne 0x41e400
test bl, bl
je 0x41e4ef
mov edx, 0x8074b50
mov ecx, esi
call fcn.0041d240
mov edx, 0x807
mov ecx, esi
call fcn.0041d240
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.0041d240
movzx edx, word [ebp + 0xa]
mov ecx, esi
call fcn.0041d240
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp + 0x10]
ja 0x41e44e
cmp edx, 0xffffffff
jae 0x41e44e
mov ecx, esi
call fcn.0041d240
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
shrd edx, eax, 0x10
jmp 0x41e45b
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d240
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d240
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x18]
ja 0x41e483
cmp edx, 0xffffffff
jae 0x41e483
mov ecx, esi
call fcn.0041d240
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
shrd edx, eax, 0x10
jmp 0x41e490
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d240
or edx, 0xffffffff
mov ecx, esi
call fcn.0041d240
mov edi, dword [esi + 0x20]
test edi, edi
jne 0x41e4f4
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 0x41e4c4
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 0x41e4dc
nop
mov ecx, eax
mov eax, dword [ecx + 0x14c]
test eax, eax
jne 0x41e4d0
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 0x41ddf9