Function at 0x448900
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47d1da
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a15f0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
call edx
mov ebp, dword [esp + 0x28]
test ebp, ebp
lea ebx, [esi + 0x30]
jne 0x44893d
xor eax, eax
jmp 0x44894d
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x448942
sub eax, edx
push eax
push ebp
mov ecx, ebx
call fcn.00403193
mov ecx, dword [esp + 0x2c]
test ecx, ecx
lea edi, [esi + 0x34]
jne 0x448965
xor eax, eax
jmp 0x44897f
mov eax, ecx
lea ebp, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x448970
sub eax, ebp
mov ebp, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.00403193
mov ecx, dword [esi + 0x2c]
test ecx, ecx
jne 0x448ab8
mov eax, dword [ebx]
cmp dword [eax - 0xc], ecx
je 0x448a5e
push 0x5c
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.00448440
push edi
push eax
lea edx, [esp + 0x3c]
xor ebx, ebx
push edx
mov dword [esp + 0x38], ebx
call fcn.0040ec39
add esp, 0x18
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x20], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4489e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x448a73
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x448a73
test al, 0x10
jne 0x448a73
push 0x14
call fcn.00402320
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x20], 3
je 0x448a24
mov ecx, eax
call fcn.00474c43
jmp 0x448a26
xor eax, eax
mov ecx, dword [esp + 0x28]
push ebx
mov dword [esi + 0x3c], eax
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push ebx
push ecx
mov ecx, eax
mov byte [esp + 0x2c], 2
call edx
test eax, eax
jne 0x448a65
mov ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x448a55
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x3c], ebx
lea ecx, [esp + 0x28]
call fcn.00401af0
xor eax, eax
jmp 0x448bfb
lea ecx, [esp + 0x28]
call fcn.00401af0
jmp 0x448bf6
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x28], eax
jne 0x448a8e
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448ac6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x448ac6
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x28], eax
cmp dword [esi + 0x28], 0
je 0x448a5e
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x448b18
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004487f0
push eax
mov ecx, edi
mov dword [esp + 0x24], 4
call fcn.0040558d
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x448b18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00403c56
add eax, 0x10
add esp, 4
mov dword [esp + 0x28], eax
push 0x5f
push 0x2e
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 5
call fcn.00448350
push 0x5f
push 0x5c
lea ecx, [esp + 0x30]
call fcn.00448350
mov ebx, dword [esp + 0x28]
mov ecx, dword [esi + 0x28]
push str.TEXTFILE
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x448b91
add ebx, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x448b8d
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
xor eax, eax
jmp 0x448bfb
mov ecx, dword [esi + 0x28]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x448b69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esi + 0x28]
push edi
push ecx
mov dword [esi + 0x20], eax
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
shr eax, 1
test ebp, ebp
lea edx, [ebp + eax*2]
mov dword [esi + 0x24], edx
je 0x448bd2
cmp word [ebp], 0xfeff
jne 0x448bd2
add ebp, 2
mov dword [esi + 0x20], ebp
add ebx, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x448bf6
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8