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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48fedc
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x4b39fc]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea eax, [esp + 0x1b8]
xor ecx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1b4], eax
mov word [esp + 0x1b8], cx
mov dword [esp + 0x480], ebx
lea edx, [esp + 0x130]
xor eax, eax
mov dword [esp + 0x12c], edx
mov word [esp + 0x130], ax
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x1b8]
push edx
mov ecx, edi
mov byte [esp + 0x488], 1
call fcn.00430330
mov eax, dword [esp + 0x134]
add esp, 8
cmp word [eax], bx
je 0x430896
mov ecx, dword [esp + 0x1b4]
movzx eax, word [ecx]
cmp ax, bx
je 0x430896
movzx edx, ax
push edx
call fcn.00479c6c
add esp, 4
test eax, eax
je 0x430896
mov ecx, dword [esp + 0x1b4]
push 0xa
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], ebx
call fcn.004789f4
mov edi, dword [esp + 0x138]
add esp, 0xc
mov edx, str.COLOR
mov ecx, edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x4307fb
test si, si
je 0x4307f7
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4307fb
add ecx, 4
add edx, 4
test si, si
jne 0x4307d5
xor ecx, ecx
jmp 0x430800
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x43080c
lea ebx, [ecx + 1]
jmp 0x430c50
movzx ecx, ax
mov eax, dword [0x4fa9c0]
test eax, eax
jne 0x43081d
mov eax, dword [0x4fa9c8]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x430bde
push esi
call fcn.004046d0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
test edi, edi
jne 0x43084f
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x430bde
call fcn.004046d0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x430bde
mov edx, eax
push edx
call fcn.00476c60
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.004779c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x430bda
mov eax, dword [0x4b52c0]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
xor edx, edx
push eax
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ecx
mov word [esp + 0x28], dx
call fcn.004020a0
mov byte [esp + 0x480], 2
mov eax, dword [0x4b5348]
cmp word [eax], 0
jne 0x4309c8
test edi, edi
je 0x4308da
push edi
mov ecx, esi
push ecx
call fcn.00401f60
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43092a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x480], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x430bde
push eax
call fcn.00479054
add esp, 4
jmp 0x430bde
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x430963
mov byte [esp + 0x480], 1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x430bde
push eax
call fcn.00479054
add esp, 4
jmp 0x430bde
push edi
mov dword [esp + 0x18], 0
call fcn.00476c60
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], edi
je 0x430bbd
push ebx
call fcn.00478198
mov byte [esp + 0x484], 1
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
add esp, 4
xor ebx, ebx
cmp eax, ecx
je 0x430bde
push eax
call fcn.00479054
add esp, 4
jmp 0x430bde
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00401f60
mov edi, dword [0x4fa9c4]
test edi, edi
jne 0x430a03
mov byte [esp + 0x480], 1
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x430bde
push eax
call fcn.00479054
add esp, 4
jmp 0x430bde
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
lea edx, [esp + 0xac]
xor eax, eax
push ecx
lea esi, [esp + 0xac]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xac], edx
mov word [esp + 0xb0], ax
call fcn.004020a0
push 0x49a104
mov edx, esi
push edx
mov ecx, 0x49a100
mov byte [esp + 0x488], 4
call fcn.00402550
cmp dword [0x4fa9b0], 0
jne 0x430a8a
push 0x18
call fcn.004776e1
add esp, 4
test eax, eax
je 0x430a7c
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
jmp 0x430a7e
xor eax, eax
push eax
mov dword [0x4fa9b0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x4fa9b0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], 1
mov byte [0x4fa9b4], 1
jne 0x430ad1
mov eax, dword [esp + 0xa4]
mov esi, dword [edi + 4]
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0041f240
mov dword [0x4fa9f4], eax
test eax, eax
je 0x430b29
cmp byte [0x4fa9b4], 0
je 0x430ae8
mov eax, dword [0x4fa9b0]
test eax, eax
je 0x430ae8
push eax
mov byte [0x4fa9b4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0xa8]
cmp eax, ecx
je 0x430b03
push eax
call fcn.00479054
add esp, 4
mov byte [esp + 0x480], 1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x430bde
push eax
call fcn.00479054
add esp, 4
jmp 0x430bde
mov esi, dword [esp + 0x468]
mov dword [esp + 0x10], esi
test esi, esi
je 0x430ae8
push esi
call fcn.00476c60
add esp, 4
cmp dword [edi], 1
mov ebx, eax
je 0x430b4f
mov eax, 0x80000
jmp 0x430b5f
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 4]
push esi
push ebx
push eax
push edi
call fcn.0041f320
cmp byte [0x4fa9b4], 0
mov dword [0x4fa9f4], eax
mov esi, eax
je 0x430b86
mov eax, dword [0x4fa9b0]
test eax, eax
je 0x430b86
push eax
mov byte [0x4fa9b4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x430ba2
cmp esi, 0x600
je 0x430ba2
push ebx
call fcn.00478198
add esp, 4
xor ebx, ebx
jmp 0x430ae8
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0xa8]
cmp eax, ecx
je 0x430bbd
push eax
call fcn.00479054
add esp, 4
mov byte [esp + 0x480], 1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp eax, edx
je 0x430bda
push eax
call fcn.00479054
add esp, 4
test ebx, ebx
jne 0x430c50
mov eax, dword [esp + 0x18]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x430c50
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
test eax, eax
je 0x430c50
mov edi, eax
push edi
mov dword [esp + 0x1c], 0
call fcn.00476c60
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], edi
je 0x430c50
push ebx
call fcn.00478198
add esp, 4
xor ebx, ebx
xor esi, esi
test ebx, ebx
je 0x430c6e
mov eax, dword [esp + 0x10]
push ebx
call fcn.00430cd0
add esp, 4
push ebx
mov esi, eax
call fcn.00478198
add esp, 4
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x130]
cmp eax, edx
je 0x430c89
push eax
call fcn.00479054
add esp, 4
mov eax, dword [esp + 0x1b4]
lea ecx, [esp + 0x1b8]
cmp eax, ecx
je 0x430ca4
push eax
call fcn.00479054
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004771de
mov esp, ebp
pop ebp
ret