Function at 0x431588
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00407154
xor eax, eax
push ebp
push 0x4317a6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 5
mov eax, dword [ebp - 4]
call fcn.00407730
push eax
mov eax, dword [0x439c4c]
push eax
call sub.kernel32.dll_FindResourceW
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x431764
push esi
mov eax, dword [0x439c4c]
push eax
call sub.kernel32.dll_LoadResource
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x431764
lea eax, [ebp - 0x14]
call fcn.004313dc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0
call fcn.004076bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00431548
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x34]
mov ecx, dword [0x430d18]
call fcn.0040868c
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [0x439c4c]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
cmp byte [ebp - 5], 0
je 0x431739
mov eax, dword [edi + 0x28]
call fcn.0040404c
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 0x14], eax
push 0x20
lea eax, [edi + 0x18]
mov ecx, 1
mov edx, dword [0x430d18]
call fcn.00408524
add esp, 4
push 0x20
lea eax, [edi + 0x1c]
mov ecx, 1
mov edx, dword [0x430d18]
call fcn.00408524
add esp, 4
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
jmp 0x4316fd
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x10]
mov ecx, 0x20
call fcn.004041f0
lea ecx, [ebp - 0x18]
mov edx, dword [edi + 0x34]
mov eax, dword [edi + 0x18]
call fcn.00431034
mov edx, dword [ebp - 0x18]
lea eax, [edi + 0x1c]
mov ecx, dword [0x430d18]
call fcn.0040868c
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x1c]
mov ecx, 0x20
call fcn.004041f0
add dword [edi + 0x20], 0x20
adc dword [edi + 0x24], 0
add dword [edi + 0x10], 0x20
add dword [edi + 0x14], 0x20
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
sub eax, dword [edi + 0x20]
sbb edx, dword [edi + 0x24]
cmp edx, 0
jne 0x431715
cmp eax, 0x20
jae 0x4316ae
jmp 0x431717
jge 0x4316ae
mov eax, dword [edi + 0x28]
mov ecx, eax
add ecx, dword [edi + 0x38]
dec ecx
mov dword [edi + 0x10], ecx
movzx eax, byte [ecx]
mov byte [edi + 0x30], al
mov bl, 1
movzx eax, al
mov edx, dword [edi + 0x28]
sub edx, eax
dec edx
mov dword [edi + 0x3c], edx
jmp 0x43175b
mov eax, dword [edi + 0x28]
call fcn.0040404c
mov ebx, eax
mov dword [edi + 0x38], ebx
mov edx, ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x28]
call fcn.004041f0
mov bl, 1
mov eax, dword [edi + 0x28]
mov dword [edi + 0x3c], eax
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4317ad
lea eax, [ebp - 0x18]
mov edx, dword [0x430d18]
call fcn.00408648
lea eax, [ebp - 0x14]
call fcn.00407070
lea eax, [ebp - 0x10]
call fcn.00407094
lea eax, [ebp - 0xc]
mov edx, dword [0x430d18]
call fcn.00408648
lea eax, [ebp - 4]
call fcn.00407070
ret