Function at 0x1000392c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x1002abad
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10041024]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ebp + 0x414]
xor ebx, ebx
mov eax, dword [ebp + 0x410]
mov esi, ebx
mov dword [ebp - 0x24], edx
mov edx, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x10003b39
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100039a7
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000212c
add esp, 0xc
test eax, eax
js 0x10003b39
mov edi, dword [ebp - 0x18]
cmp edi, 0x400
jg 0x100039f7
push edi
call fcn.10004d0b
pop ecx
test al, al
je 0x100039f7
mov eax, edi
call fcn.1000c1e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x10003a03
push edi
lea ecx, [ebp - 0x1c]
call fcn.100029ef
mov esi, dword [ebp - 0x1c]
push 3
push edi
push dword [ebp - 0x14]
push eax
call fcn.10013c10
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10003b36
push 0x60
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x10003a4e
push 2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x10003a4e
call fcn.10002cce
mov ebx, eax
jmp 0x10003b13
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x10003a6c
call fcn.10002cce
jmp 0x10003b06
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10003a62
push dword [ebp - 0x24]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x10003a96
mov ebx, 0x8007000e
jmp 0x10003b08
push 1
push ecx
mov byte [ebp - 4], 2
call fcn.10013c10
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x10003ab6
push eax
lea ecx, [ebp]
call fcn.10002a19
jmp 0x10003acc
lea eax, [ebp + 4]
mov dword [ebp], eax
jmp 0x10003acc
cmp dword [ebp], 0
mov dword [ebp - 4], 1
je 0x10003a8f
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push eax
push dword [ebp]
call fcn.10004d89
mov eax, dword [ebp]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x41c]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x2c]
push dword [ebp]
call fcn.10003804
mov ebx, eax
test edi, edi
je 0x10003b13
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x10003b2e
lea ecx, [ebp]
call fcn.10002f8a
jmp 0x10003b2e
push esi
mov esi, dword [esi]
call fcn.10013c10
pop ecx
test esi, esi
jne 0x10003b25
mov eax, ebx
jmp 0x10003b5c
mov ebx, dword [ebp]
lea eax, [ebp + 4]
cmp ebx, eax
je 0x10003b53
lea ecx, [ebp]
call fcn.10002f8a
jmp 0x10003b53
push esi
mov esi, dword [esi]
call fcn.10013c10
pop ecx
test esi, esi
jne 0x10003b4a
mov eax, 0x8007000e
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1000be90
add ebp, 0x408
leave
ret 0x10