Function at 0x419838
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe54
push ebx
xor edx, edx
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1a8], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419cd7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x419ce8
push 0
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4198b1
mov eax, dword [ebp - 0x44]
push eax
push 0
call sub.kernel32.dll_SizeofResource
test eax, eax
jns 0x419892
call fcn.00403a44
push eax
mov eax, dword [ebp - 0x44]
push eax
push 0
call sub.kernel32.dll_LoadResource
mov ecx, eax
mov dl, 1
mov eax, dword [0x406924]
call fcn.00406f3c
mov dword [ebp - 8], eax
jmp 0x4198e9
mov eax, 0x419cf8
call fcn.00407550
test al, al
je 0x4198d5
mov ecx, 0x419cf8
mov dl, 1
mov eax, dword [0x406808]
call fcn.00406ccc
mov dword [ebp - 8], eax
jmp 0x4198e9
mov ecx, 0x419d0c
mov dl, 1
mov eax, dword [0x406808]
call fcn.00406ccc
mov dword [ebp - 8], eax
mov dl, 1
mov eax, dword [0x4068a0]
call fcn.00406e28
mov dword [ebp - 0x40], eax
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041b730
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x65b], edx
mov eax, dword [ebp - 4]
lea edx, [eax + 4]
mov ecx, 0x643
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00406b00
mov eax, dword [ebp - 4]
lea edx, [eax + 0x647]
lea eax, [ebp - 0x34]
call fcn.00409234
lea ecx, [ebp - 0x1a8]
mov eax, dword [ebp - 4]
add eax, 0x647
mov edx, 0x419d28
call fcn.004097ec
mov eax, dword [ebp - 0x1a8]
call fcn.004190a4
cmp dword [ebp + 8], 0
je 0x419974
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.004192ac
lea edx, [ebp - 0x28]
mov ecx, 4
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x1ac]
mov eax, dword [ebp - 0x40]
call fcn.00406b34
mov eax, dword [ebp - 0x28]
sub eax, 1
jno 0x4199aa
call fcn.00403a4c
test eax, eax
jl 0x4199c9
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x40]
call fcn.004142c0
inc dword [ebp - 0x30]
dec dword [ebp - 0x48]
jne 0x4199b9
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.004192ac
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x435484]
mov ecx, 1
mov edx, dword [0x418da0]
call fcn.004057e0
add esp, 4
mov eax, dword [0x435484]
mov eax, dword [eax]
call fcn.0040562c
test eax, eax
jl 0x419ad4
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x3c]
mov ecx, 4
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [0x435484]
mov edx, dword [edx]
test edx, edx
je 0x419a43
cmp eax, dword [edx - 4]
jb 0x419a48
call fcn.00403a44
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x3c]
call fcn.00404bd4
cmp dword [ebp - 0x3c], 0
jle 0x419a9e
mov eax, dword [ebp - 0x10]
mov edx, dword [0x435484]
mov edx, dword [edx]
test edx, edx
je 0x419a6d
cmp eax, dword [edx - 4]
jb 0x419a72
call fcn.00403a44
lea eax, [edx + eax*8]
call fcn.00404aa0
mov edx, 1
dec edx
test eax, eax
je 0x419a89
cmp edx, dword [eax - 4]
jb 0x419a8e
call fcn.00403a44
inc edx
lea edx, [eax + edx - 1]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [0x435484]
mov edx, dword [edx]
test edx, edx
je 0x419ab2
cmp eax, dword [edx - 4]
jb 0x419ab7
call fcn.00403a44
lea edx, [edx + eax*8 + 4]
mov ecx, 4
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x14]
inc dword [ebp - 0x10]
dec dword [ebp - 0x48]
jne 0x419a1f
lea edx, [ebp - 0x24]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
add eax, 0x653
mov ecx, 1
mov edx, dword [0x415260]
call fcn.004057e0
add esp, 4
mov eax, dword [ebp - 0x24]
sub eax, 1
jno 0x419b10
call fcn.00403a4c
test eax, eax
jl 0x419b70
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], 0
mov dl, 1
mov eax, dword [0x4151d8]
call fcn.00415d28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x653]
test edx, edx
je 0x419b43
cmp eax, dword [edx - 4]
jb 0x419b48
call fcn.00403a44
mov ecx, dword [ebp - 0x2c]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 0xc]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x10], 1
inc dword [ebp - 0x18]
dec dword [ebp - 0x48]
jne 0x419b1f
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 1
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, eax
add edx, dword [ebp - 0xc]
jno 0x419bb2
call fcn.00403a4c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.004192ac
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor ecx, ecx
mov dl, 1
mov eax, dword [0x416158]
call fcn.00416600
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
sub eax, 1
jno 0x419bf3
call fcn.00403a4c
test eax, eax
jl 0x419c1d
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x38]
call fcn.004166d0
mov eax, dword [ebp - 0x38]
call fcn.004164c8
inc dword [ebp - 0x14]
dec dword [ebp - 0x48]
jne 0x419c02
mov dl, 1
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx - 4]
mov dl, 1
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x653]
call fcn.0040562c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x653]
test edx, edx
je 0x419c51
cmp eax, dword [edx - 4]
jb 0x419c56
call fcn.00403a44
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
mov dword [edx + 0x657], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x657]
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.004195ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x653]
call fcn.00405624
sub eax, 1
jno 0x419c8d
call fcn.00403a4c
push eax
mov eax, dword [ebp - 4]
add eax, 0x653
mov ecx, 1
mov edx, dword [0x415260]
call fcn.004057e0
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419cde
lea eax, [ebp - 0x1ac]
mov edx, 2
call fcn.004045ac
lea eax, [ebp - 0x4c]
call fcn.00404588
lea eax, [ebp - 0x34]
call fcn.00404588
ret