Function at 0x5f492d42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x48], ecx
push 0x173
push str.bartool.cpp
mov eax, dword [ebp - 0x48]
push eax
call sym.MFC42D.DLL_Ordinal_1042
cmp dword [ebp + 8], 0
jne 0x5f492d7b
push 0x174
push str.bartool.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f492d7b
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f492d61
push 0xf1
mov edx, dword [ebp + 8]
push edx
call sym.MFC42D.DLL_Ordinal_1078
mov dword [ebp - 8], eax
push 0xf1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x5f492db5
xor eax, eax
jmp 0x5f492f3c
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x5f492dd3
xor eax, eax
jmp 0x5f492f3c
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x5f492ded
xor eax, eax
jmp 0x5f492f3c
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx]
cmp eax, 1
je 0x5f492e0e
push 0x183
push str.bartool.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f492e0e
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f492ded
push 0x185
push str.bartool.cpp
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 6]
shl eax, 2
push eax
call sym.MFC42D.DLL_Ordinal_714
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], 0
jmp 0x5f492e4e
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x18], ecx
jge 0x5f492e78
mov ecx, dword [ebp - 0x10]
call sym.MFC42D.DLL_Ordinal_3399
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov cx, word [eax + edx*2]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4], ecx
jmp 0x5f492e45
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 6]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x48]
call sym.MFC42D.DLL_Ordinal_4578
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call sym.MFC42D.DLL_Ordinal_721
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x5f492f26
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
push ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 2]
push eax
lea ecx, [ebp - 0x24]
call sym.MFC42D.DLL_Ordinal_470
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dx, word [ecx + 4]
add edx, 7
push edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 2]
add ecx, 7
push ecx
lea ecx, [ebp - 0x2c]
call sym.MFC42D.DLL_Ordinal_470
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
call sym.MFC42D.DLL_Ordinal_4856
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x48]
call sym.MFC42D.DLL_Ordinal_3424
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
push edx
call sym.MFC42D.DLL_Ordinal_5041
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4