Function at 0x56a000
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602e73
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x5c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4bc], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x56a048
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x4c0], edx
jmp 0x56a054
mov eax, dword [ebp + 8]
add eax, 4
mov dword [ebp - 0x4c0], eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp - 0x4c0]
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x56a1dd
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0x10
jb 0x56a0ad
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4c4], ecx
jmp 0x56a0b9
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp - 0x4c4], edx
push 0x619c1c
mov eax, dword [ebp - 0x4c4]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x56a0df
xor al, al
jmp 0x56a96a
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x56a10e
xor al, al
jmp 0x56a96a
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x56a128
xor al, al
jmp 0x56a96a
xor ecx, ecx
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x4bc]
add edx, 4
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x334]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x324], ecx
mov edx, dword [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x324]
push eax
lea ecx, [ebp - 0x320]
call fcn.0054a100
mov ecx, dword [ebp - 0x320]
mov edx, dword [ebp - 0x31c]
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x314], edx
lea eax, [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x314]
push ecx
mov edx, dword [ebp - 0x318]
push edx
mov ecx, dword [ebp - 0x334]
call fcn.0056bf20
mov ecx, dword [ebp - 0x4bc]
add ecx, 4
call fcn.004bfc70
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x34]
mov dword [edx + 8], eax
jmp 0x56a302
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0
push 2
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x56a21c
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
jmp 0x56a96a
mov edx, dword [ebp - 0x30]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x56a254
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
jmp 0x56a96a
xor eax, eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x4bc]
add ecx, 4
mov dword [ebp - 0x364], ecx
mov edx, dword [ebp - 0x364]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x354], eax
mov ecx, dword [ebp - 0x364]
push ecx
mov edx, dword [ebp - 0x354]
push edx
lea ecx, [ebp - 0x350]
call fcn.0054a100
mov eax, dword [ebp - 0x350]
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], ecx
lea edx, [ebp - 0x19c]
push edx
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x348]
push ecx
mov ecx, dword [ebp - 0x364]
call fcn.0056bf20
mov ecx, dword [ebp - 0x4bc]
add ecx, 4
call fcn.004bfc70
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x4bc]
add ecx, 4
call fcn.004bfc70
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x214]
mov dword [ebp - 0x38c], edx
lea eax, [ebp - 0x385]
mov dword [ebp - 0x384], eax
push 0
push 0
mov ecx, dword [ebp - 0x38c]
call fcn.004079f0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x394], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.005263c0
add esp, 8
mov dword [ebp - 0x4c8], eax
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x390], ecx
mov byte [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x1e8]
call fcn.004079f0
mov edx, dword [0x611c1c]
push edx
push 0
mov eax, dword [ebp - 0x390]
push eax
lea ecx, [ebp - 0x1e8]
call fcn.0040aae0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x394]
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.0056bea0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x1e8]
mov dword [ebp - 0x4cc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4cc]
push eax
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x4bc]
add ecx, 0x20
call fcn.0056bb40
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e8]
call fcn.0056a9b0
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.004079f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x214]
call fcn.004079f0
lea ecx, [ebp - 0x20]
call fcn.004c6510
add eax, 0x1c
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
mov dword [ecx], edx
mov eax, dword [0x611c1c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
add ecx, 4
call fcn.0040aae0
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0x10
jb 0x56a480
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4d0], ecx
jmp 0x56a48c
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp - 0x4d0], edx
push 0x606a70
mov eax, dword [ebp - 0x4d0]
push eax
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x56a4bb
xor al, al
jmp 0x56a96a
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x38]
push ecx
push 1
push 4
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x4bc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 0x14]
call eax
cmp dword [ebp - 0x18], 0xbac04ac0
je 0x56a508
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x4bc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [eax + 8]
call edx
xor al, al
jmp 0x56a96a
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x38]
push eax
push 1
push 4
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x4bc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [eax + 0x14]
call edx
cmp dword [ebp - 0x24], 0
jbe 0x56a552
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 8]
call eax
xor al, al
jmp 0x56a96a
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x165], 0
mov ecx, dword [ebp - 0x38]
push ecx
push 1
push 1
lea edx, [ebp - 0x165]
push edx
mov eax, dword [ebp - 0x4bc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x16c], eax
movzx ecx, byte [ebp - 0x165]
and ecx, 0x80
jne 0x56a5a0
cmp dword [ebp - 0x16c], 0
jne 0x56a5a5
jmp 0x56a82f
mov byte [ebp - 0x15d], 0
mov edx, dword [ebp - 0x38]
push edx
push 1
push 1
lea eax, [ebp - 0x15d]
push eax
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 0x38]
push ecx
movzx edx, byte [ebp - 0x15d]
push edx
push 1
lea eax, [ebp - 0x15c]
push eax
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 0x14]
call eax
movzx ecx, byte [ebp - 0x15d]
mov byte [ebp + ecx - 0x15c], 0
mov dword [ebp - 0x164], 0
mov edx, dword [ebp - 0x38]
push edx
push 1
push 4
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 0x38]
push ecx
push 1
push 8
lea edx, [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x4bc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.0040dbc0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x2b8]
mov dword [ebp - 0x414], edx
lea eax, [ebp - 0x40d]
mov dword [ebp - 0x40c], eax
push 0
push 0
mov ecx, dword [ebp - 0x414]
call fcn.004079f0
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x41c], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x2f4]
push eax
call fcn.005263c0
add esp, 8
mov dword [ebp - 0x4d4], eax
mov ecx, dword [ebp - 0x4d4]
mov dword [ebp - 0x418], ecx
mov byte [ebp - 4], 6
push 0
push 0
lea ecx, [ebp - 0x28c]
call fcn.004079f0
mov edx, dword [0x611c1c]
push edx
push 0
mov eax, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x28c]
call fcn.0040aae0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x270]
call fcn.0056bea0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x28c]
mov dword [ebp - 0x4d8], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x4d8]
push eax
lea ecx, [ebp - 0x300]
push ecx
mov ecx, dword [ebp - 0x4bc]
add ecx, 0x20
call fcn.0056bb40
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28c]
call fcn.0056a9b0
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x2f4]
call fcn.004079f0
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2b8]
call fcn.004079f0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2d8]
call fcn.004079f0
lea ecx, [ebp - 0x174]
call fcn.004c6510
add eax, 0x1c
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ebp - 0x3c]
mov dword [ecx], edx
lea eax, [ebp - 0x15c]
push eax
call fcn.005cdf90
add esp, 4
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
push ecx
lea edx, [ebp - 0x15c]
push edx
mov ecx, dword [ebp - 0x178]
add ecx, 4
call fcn.0040b080
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x164]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ebp - 0x180]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x17c]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x164]
mov dword [ebp - 0x14], ecx
jmp 0x56a559
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x4bc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x4bc]
add ecx, 0x20
mov dword [ebp - 0x49c], ecx
mov edx, dword [ebp - 0x49c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
mov edx, dword [ecx]
mov dword [ebp - 0x498], edx
mov dword [ebp - 0x308], 0
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x304], eax
jne 0x56a892
call fcn.005cbe1d
mov ecx, dword [ebp - 0x49c]
mov edx, dword [ecx]
mov dword [ebp - 0x308], edx
mov eax, dword [ebp - 0x308]
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x4bc]
add edx, 0x20
mov dword [ebp - 0x4a4], edx
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x4a0], ecx
mov dword [ebp - 0x310], 0
mov edx, dword [ebp - 0x4a0]
mov dword [ebp - 0x30c], edx
jne 0x56a8ed
call fcn.005cbe1d
mov eax, dword [ebp - 0x4a4]
mov ecx, dword [eax]
mov dword [ebp - 0x310], ecx
lea edx, [ebp - 0x310]
push edx
lea ecx, [ebp - 0x20]
call fcn.004bd5e0
movzx eax, al
test eax, eax
je 0x56a951
lea ecx, [ebp - 0x20]
call fcn.004c6510
add eax, 0x1c
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
mov edx, dword [ecx]
cmp edx, dword [ebp - 0x3c]
jne 0x56a944
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax + 0x28]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x184]
mov dword [edx + 0x28], ecx
lea ecx, [ebp - 0x20]
call fcn.0056cd30
jmp 0x56a8b2
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x4bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x4bc]
mov eax, dword [edx + 8]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x5c]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret 4