Function at 0x403830
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561d5f
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5a7074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [0x5bdf44]
push 0xa
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x403926
call fcn.0040e640
mov ecx, eax
test ecx, ecx
jne 0x403899
push 0x80004005
call fcn.0040e1d0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4038ae
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4038b0
call edx
add eax, 0x10
mov dword [ebp - 0x9c], eax
push edi
mov dword [ebp - 4], 0
push str.Dont_find_res_id:_d
lea eax, [ebp - 0x9c]
push eax
call fcn.00408f20
mov esi, dword [ebp - 0x9c]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40391f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40391d
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x403afa
call edx
xor al, al
jmp 0x403afa
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x40397f
call fcn.0040e640
mov ecx, eax
test ecx, ecx
jne 0x40394d
push 0x80004005
call fcn.0040e1d0
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x403962
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x403964
call edx
add eax, 0x10
mov dword [ebp - 0x9c], eax
push edi
mov dword [ebp - 4], 1
push str.LoadResource_error_id:_d
jmp 0x4038c6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 2
test esi, esi
jne 0x4039af
mov dword [ebp - 0x18], esi
mov byte [ebp + esi - 0x28], al
jmp 0x4039ba
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00406be0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x9c]
push eax
call fcn.0050dc00
and dword [ebp - 0xac], 0xfffffe00
add esp, 0xc
mov dword [ebp - 0xa8], 0
lea eax, [ebp - 0x9a]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x98]
mov word [ebp - 0x9a], 0x100
call fcn.0043afc0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x70]
call fcn.0041de40
cmp dword [ebp - 0x5c], 0x10
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0xb4]
cmovae ecx, dword [ebp - 0x70]
push 0
add eax, ecx
push edx
push eax
push ecx
lea ecx, [ebp - 0x98]
call fcn.0043b1d0
test al, al
jne 0x403a85
lea ecx, [ebp - 0x9c]
call fcn.0040e760
push edi
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 6
push str.parse_file_error:_d
push eax
call fcn.00408f20
add esp, 0xc
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x9c]
call fcn.0040e180
xor bl, bl
jmp 0x403acd
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xb4]
push 0
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00403d20
mov esi, dword [ebp - 0x9c]
test esi, esi
je 0x403acb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x403acb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x403acb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov bl, 1
lea ecx, [ebp - 0x98]
call fcn.00403770
lea ecx, [ebp - 0xb4]
call fcn.004326a0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x403af8
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004077c0
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 - 0x10]
xor ecx, ebp
call fcn.0050a055
mov esp, ebp
pop ebp
ret 8