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

Disassembly:
push 0xffffffffffffffff
push 0x64f16d
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
mov eax, dword [0x6a9fa4]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a9fa4]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, 0x10
cmp dword [esi + 0x18], ebp
mov dword [esp + 0x2c], esi
jb 0x5df987
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
mov dword [esp + 0x18], ebx
jmp 0x5df990
lea eax, [esi + 4]
mov dword [esp + 0x18], eax
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
push 0
jne 0x5dfa3a
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
cmp dword [esi + 0x18], ebp
mov edi, eax
jb 0x5df9c4
mov eax, dword [ebx]
jmp 0x5df9c6
mov eax, ebx
push 0x685d50
push eax
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5dfa64
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
push esi
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x5dfa64
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5dfa64
xor eax, eax
lea ecx, [esp + 0x20]
mov ebx, 0x76b534
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.005e0a80
mov edi, ebx
call fcn.005a1e80
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
jmp 0x5dfaf6
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
push 0
mov esi, eax
push esi
push 0
push 2
push 0
push edi
mov dword [esp + 0x48], esi
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x5dfa6b
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
jmp 0x5dffba
push esi
push 0
push 0
push 4
push ebp
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x5dfa94
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
xor al, al
jmp 0x5dffba
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x76b538]
mov ecx, dword [eax + 4]
lea ebx, [eax + 4]
push ecx
push eax
lea esi, [esp + 0x28]
call fcn.005e0fc0
mov ecx, 0x76b534
mov esi, eax
call fcn.005e1000
mov dword [ebx], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [0x76b538]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x5dfae9
call fcn.0062472f
cmp esi, dword [0x76b538]
jne 0x5dfae9
call fcn.0062472f
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edx
mov eax, dword [0x76b538]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x5dfb14
call fcn.0062472f
cmp esi, dword [0x76b538]
jne 0x5dfb14
call fcn.0062472f
xor eax, eax
add esi, 8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], eax
mov byte [esp + 0x70], al
mov ebp, dword [esp + 0x2c]
mov ebx, ebp
lea edi, [esp + 0x40]
mov dword [esp + 0x218], eax
call fcn.005df750
push eax
lea eax, [esp + 0xc4]
push eax
lea edi, [esp + 0x70]
mov byte [esp + 0x220], 1
call fcn.005e0c90
push eax
push 0x76b540
lea ebx, [esp + 0x64]
mov byte [esp + 0x220], 2
call fcn.005e0ab0
mov ecx, dword [eax]
mov edi, dword [eax + 4]
lea esi, [esp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.005e0020
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x5dfba7
mov edx, dword [esp + 0x44]
push edx
call fcn.0062414c
add esp, 4
xor ebx, ebx
mov dword [esp + 0x218], 0xffffffff
cmp dword [esp + 0x84], esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x5dfbda
mov eax, dword [esp + 0x70]
push eax
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x20], ebx
jne 0x5dfbe5
call fcn.0062472f
mov ecx, dword [esp + 0x20]
cmp edi, dword [ecx + 4]
jne 0x5dfbf3
call fcn.0062472f
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [edi + 0x2c]
mov dword [edi + 0x28], edx
call fcn.00405660
mov eax, dword [esp + 0x30]
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], eax
cmp dword [ebp + 0x18], esi
jb 0x5dfc1d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
jmp 0x5dfc21
mov eax, dword [esp + 0x18]
mov edx, dword [0x76b530]
push 0x665358
push eax
mov eax, dword [edx + 4]
mov ecx, 0x76b530
call eax
mov ebp, eax
cmp ebp, ebx
je 0x5dfa64
mov edx, dword [0x76b530]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x76b530
mov dword [esp + 0x48], ebx
call eax
cmp dword [esp + 0x38], 0xbac04ac0
mov edx, dword [0x76b530]
push ebp
je 0x5dfc81
mov eax, dword [edx + 8]
mov ecx, 0x76b530
call eax
xor al, al
jmp 0x5dffba
mov eax, dword [edx + 0x14]
push 1
push 4
lea ecx, [esp + 0x48]
push ecx
mov ecx, 0x76b530
mov dword [esp + 0x4c], ebx
call eax
cmp dword [esp + 0x3c], ebx
mov edx, dword [0x76b530]
push ebp
ja 0x5dfc70
mov eax, dword [edx + 0x14]
push 1
push 1
lea ecx, [esp + 0x22]
push ecx
mov ecx, 0x76b530
mov dword [esp + 0x40], ebx
mov byte [esp + 0x26], bl
call eax
test byte [esp + 0x16], 0x80
jne 0x5dff1c
jmp 0x5dfcd0
cmp eax, ebx
je 0x5dff1c
mov edx, dword [0x76b530]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 1
lea ecx, [esp + 0x23]
push ecx
mov ecx, 0x76b530
mov byte [esp + 0x27], bl
call eax
movzx ecx, byte [esp + 0x17]
mov eax, dword [0x76b530]
push ebp
push ecx
push 1
lea edx, [esp + 0x118]
push edx
mov edx, dword [eax + 0x14]
mov ecx, 0x76b530
call edx
movzx eax, byte [esp + 0x17]
mov edx, dword [0x76b530]
push ebp
push 1
push 4
lea ecx, [esp + 0x24]
mov byte [esp + eax + 0x118], bl
mov eax, dword [edx + 0x14]
push ecx
mov ecx, 0x76b530
mov dword [esp + 0x28], ebx
call eax
mov edx, dword [0x76b530]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 8
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x76b530
call eax
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00405520
mov dword [esp + 0x218], 3
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea ebx, [esp + 0x40]
lea edi, [esp + 0x98]
mov byte [esp + 0x218], 4
call fcn.005df750
push eax
lea edx, [esp + 0xc4]
push edx
lea edi, [esp + 0x70]
mov byte [esp + 0x220], 5
call fcn.005e0c90
push eax
push 0x76b540
lea ebx, [esp + 0xbc]
mov byte [esp + 0x220], 6
call fcn.005e0ab0
mov ebx, dword [eax]
mov edi, dword [eax + 4]
lea esi, [esp + 0xc0]
call fcn.005e0020
mov esi, 0x10
cmp dword [esp + 0xb0], esi
jb 0x5dfe07
mov eax, dword [esp + 0x9c]
push eax
call fcn.0062414c
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
jb 0x5dfe3b
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0062414c
add esp, 4
mov dword [esp + 0x218], 0xffffffff
cmp dword [esp + 0x58], esi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
jb 0x5dfe74
mov edx, dword [esp + 0x44]
push edx
call fcn.0062414c
add esp, 4
test ebx, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jne 0x5dfe92
call fcn.0062472f
cmp edi, dword [ebx + 4]
jne 0x5dfe9c
call fcn.0062472f
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x28], eax
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5dfeb0
sub eax, edx
push eax
lea ecx, [esp + 0x110]
push ecx
lea ecx, [edi + 0x2c]
call fcn.00405590
mov eax, dword [esp + 0x30]
mov dword [edi + 0x50], eax
mov edx, dword [esp + 0x18]
mov dword [edi + 0x54], edx
mov ecx, dword [esp + 0x5c]
mov dword [edi + 0x48], ecx
mov edx, dword [esp + 0x60]
mov dword [edi + 0x4c], edx
add eax, dword [esp + 0x18]
mov edx, dword [0x76b530]
push ebp
push 1
mov dword [esp + 0x38], eax
push 1
lea eax, [esp + 0x22]
push eax
mov eax, dword [edx + 0x14]
mov ecx, 0x76b530
mov byte [esp + 0x26], 0
call eax
xor ebx, ebx
test byte [esp + 0x16], 0x80
je 0x5dfcd0
mov edx, dword [0x76b530]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, 0x76b530
call eax
mov ecx, dword [0x76b544]
mov edi, dword [ecx]
mov esi, 0x76b540
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
jmp 0x5dff50
cmp esi, ebx
mov edx, dword [0x76b544]
mov dword [esp + 0x34], edx
je 0x5dff66
cmp esi, 0x76b540
je 0x5dff6b
call fcn.0062472f
cmp edi, dword [esp + 0x34]
je 0x5dffa7
cmp esi, ebx
jne 0x5dff7a
call fcn.0062472f
cmp edi, dword [esi + 4]
jne 0x5dff84
call fcn.0062472f
mov eax, dword [esp + 0x1c]
cmp dword [edi + 0x28], eax
jne 0x5dff94
mov ecx, dword [esp + 0x2c]
add dword [edi + 0x50], ecx
lea esi, [esp + 0x20]
call fcn.005e1340
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x5dff50
mov edx, dword [0x76b530]
mov eax, dword [edx + 8]
push ebp
mov ecx, 0x76b530
call eax
mov al, 1
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.00626d59
add esp, 0x208
ret