Function at 0x443197
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x3bc
lea ebp, [esp - 4]
mov eax, dword [0x487fb0]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
push 0x20
mov eax, 0x46d243
call fcn.0045393d
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp + 0x3c8]
lea ecx, [ebp + 0x2b4]
mov dword [ebp - 0x20], edi
xor ebx, ebx
xor esi, esi
call fcn.0041a76d
lea ecx, [ebp + 0x230]
mov dword [ebp - 4], ebx
call fcn.0041a76d
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x230]
push eax
lea eax, [ebp + 0x2b4]
push eax
push edi
mov byte [ebp - 4], 1
call fcn.00442de8
lea ecx, [ebp + 0x230]
call fcn.0041a8b7
test al, al
jne 0x44332a
lea ecx, [ebp + 0x2b4]
call fcn.0041a8b7
test al, al
jne 0x44332a
lea ecx, [ebp + 0x2b4]
call fcn.0041a64a
movzx eax, word [eax]
push eax
call fcn.00451bfc
pop ecx
test eax, eax
je 0x44332a
push 0xa
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x2b4]
mov dword [ebp - 0x14], ebx
call fcn.0041a64a
push eax
call fcn.00452ae6
add esp, 0xc
push str.COLOR
lea ecx, [ebp + 0x230]
mov edi, eax
call fcn.0041a64a
push eax
call fcn.004541f7
pop ecx
pop ecx
test eax, eax
jne 0x443298
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x1c]
push esi
push edi
call fcn.00442fd4
push edi
mov esi, eax
call fcn.0045141a
pop ecx
jmp 0x44352c
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041a394
lea ecx, [ebp + 0x230]
call fcn.0041a64a
push eax
push dword [ebp - 0x2c]
call fcn.00412b36
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x4434c0
push esi
call fcn.00412b36
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
push esi
cmp eax, ebx
jne 0x4432e9
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4434c0
call fcn.00412b36
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x4434c0
push esi
call fcn.0041206b
pop ecx
push esi
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.00453d50
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4434b8
call fcn.00412b45
push eax
lea ecx, [ebp + 0x338]
call fcn.0041abc4
mov byte [ebp - 4], 2
call fcn.00412b4b
mov ecx, eax
call fcn.0041a8b7
test al, al
je 0x4433e2
push edi
lea ecx, [ebp + 0x338]
call fcn.0041a947
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp + 0x338]
call fcn.0041a64a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x44339d
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.0041a792
jmp 0x4434c0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x443389
push esi
mov dword [ebp - 0x18], ebx
call fcn.0041206b
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x4434a9
push edi
call fcn.0045141a
pop ecx
jmp 0x443389
call fcn.00412b4b
push eax
lea ecx, [ebp + 0x338]
call fcn.0041a92d
call fcn.00412b51
test al, al
je 0x443403
call fcn.00412b57
jmp 0x44341a
push 2
push ebx
lea ecx, [ebp + 0x338]
call fcn.0041a64a
push eax
call fcn.00431040
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x443389
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push edi
push dword [ebp - 0x10]
call fcn.0042f73e
add esp, 0x14
test eax, eax
jne 0x443389
mov esi, dword [ebp + 0x22c]
cmp esi, ebx
je 0x443389
push esi
call fcn.0041206b
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0043109d
add esp, 0x18
cmp eax, ebx
je 0x443497
cmp eax, 0x600
je 0x443497
push edi
call fcn.0045141a
pop ecx
call fcn.00412b51
test al, al
jne 0x443389
push dword [ebp - 0x10]
call fcn.004310d7
jmp 0x4433df
call fcn.00412b51
test al, al
jne 0x4434a9
push dword [ebp - 0x10]
call fcn.004310d7
pop ecx
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.0041a792
cmp edi, ebx
jne 0x443280
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x44352a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x44352a
push esi
mov dword [ebp - 0x14], ebx
call fcn.0041206b
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x443522
push edi
call fcn.0045141a
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x443280
xor esi, esi
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.0041a792
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2b4]
call fcn.0041a792
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3bc]
xor ecx, ebp
call fcn.00451380
add ebp, 0x3c0
leave
ret 4