Function at 0x403230
Capabilities:
Extract resource via kernel32 functions
Print debug messages
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x447150
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x461054]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x418]
mov esi, dword [ebp + 0x40c]
mov ecx, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x440]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
test ecx, ecx
je 0x403492
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
call dword [eax + 8]
mov ebx, eax
test ebx, ebx
jne 0x4032f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x1a
push str.C:projectsep6.10_submodules_build_environment.include_sentrybay_resource.h
lea eax, [ebp]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x4033b0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x403332
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x1f
push str.C:projectsep6.10_submodules_build_environment.include_sentrybay_resource.h
lea eax, [ebp]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x4033b0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x403374
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push esi
push eax
push 0x24
push str.C:projectsep6.10_submodules_build_environment.include_sentrybay_resource.h
lea eax, [ebp]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
jmp 0x4033b0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4033db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push eax
push 0x29
push str.C:projectsep6.10_submodules_build_environment.include_sentrybay_resource.h
lea eax, [ebp]
push 0x44b900
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
call fcn.004135e0
test eax, eax
je 0x4033d0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4033d0
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x40344f
push 0
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test edi, edi
jne 0x40344c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push esi
push eax
push 0x2f
push str.C:projectsep6.10_submodules_build_environment.include_sentrybay_resource.h
lea eax, [ebp]
push 0x44b884
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
call fcn.004135e0
test eax, eax
je 0x403443
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403443
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov ecx, dword [ebp + 0x440]
test ecx, ecx
je 0x40346d
mov esi, dword [ecx]
lea eax, [ebp + 0x41c]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0042cc35
lea esp, [ebp + 0x404]
pop ebp
ret
call fcn.00415dc0
int3