Function at 0x436313
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
cmp eax, edi
je 0x436700
cmp dword [eax + 4], edi
je 0x436700
cmp dword [ebx + 0xc], edi
jne 0x436700
mov eax, dword [ebx + 0x18]
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp dword [eax - 0xc], edi
je 0x436394
push edi
push edi
mov ecx, 0x6712b8
call fcn.00429c92
mov ecx, dword [ebx + 0x18]
mov eax, dword [0x671294]
mov edx, dword [eax]
lea esi, [ebp - 0xc]
push esi
push 1
push SysReAllocString
push edi
push ecx
push eax
call dword [edx + 0xc]
mov esi, eax
cmp esi, edi
jge 0x436490
jmp 0x436705
cmp dword [ebx + 0x10], edi
je 0x436511
movzx esi, word [ebx + 0x10]
call fcn.0040b24c
mov ebx, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
cmp ebx, edi
jne 0x4363b8
mov ebx, str.image
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
neg esi
sbb esi, esi
mov ebx, 0x7fffbffb
and esi, ebx
add esi, 0x80004005
mov dword [ebp - 0x28], eax
js 0x43648d
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
add esi, 0x80004005
js 0x43648d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov dword [ebp - 0x24], esi
neg esi
sbb esi, esi
and esi, ebx
add esi, 0x80004005
js 0x43648d
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x28], esi
neg esi
sbb esi, esi
and esi, ebx
add esi, 0x80004005
js 0x43648d
push edi
push edi
mov ecx, 0x6712b8
call fcn.00429c92
mov eax, dword [0x671294]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x38]
mov esi, eax
cmp esi, edi
jl 0x43648d
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov esi, eax
cmp esi, edi
jl 0x43648d
push edi
push edi
mov ecx, 0x6712b8
call fcn.00429c92
mov eax, dword [0x671294]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 1
push edi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx + 0xc], edi
jne 0x43667b
cmp esi, edi
jl 0x4364d8
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x4364b7
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push edi
push eax
call dword [ecx + 0x34]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp esi, edi
jl 0x4364d8
push edi
push edi
mov ecx, 0x6712b8
call fcn.00429c92
mov eax, dword [0x671294]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x28]
mov esi, eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
cmp eax, edi
jne 0x43655d
cmp ecx, edi
jne 0x43655d
cmp esi, edi
jl 0x43667b
mov eax, dword [ebp - 8]
fldz
mov ecx, dword [eax]
push 1
push ecx
push ecx
fstp qword [esp]
push edi
push edi
push 0x629db0
push dword [ebp - 4]
jmp 0x43665b
cmp dword [ebx + 0x24], edi
je 0x436490
push edi
push edi
mov ecx, 0x6712b8
call fcn.00429c92
mov eax, dword [0x671294]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push edi
push edi
push dword [ebx + 0x24]
push eax
call dword [ecx + 0x54]
mov esi, eax
cmp esi, edi
jl 0x436490
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [eax]
lea ecx, [ebx + 0xc]
push ecx
push edi
push dword [ebp - 4]
push eax
call dword [edx + 0x14]
jmp 0x436490
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jl 0x43667b
cmp dword [ebp - 0x20], edi
jne 0x4365c1
mov eax, dword [ebp - 0x1c]
fild dword [ebp - 0x1c]
test eax, eax
jns 0x43658d
fadd dword [0x5f3aa0]
mov eax, dword [ebp - 0x28]
fild dword [ebp - 0x28]
test eax, eax
jns 0x43659d
fadd dword [0x5f3aa0]
fdivp st(1)
mov eax, dword [ebp - 0x24]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x20]
fild dword [ebp - 0x24]
test eax, eax
jns 0x4365b5
fadd dword [0x5f3aa0]
fmulp st(1)
call fcn.005a2a26
mov dword [ebp - 0x20], eax
jmp 0x436608
cmp dword [ebp - 0x1c], edi
jne 0x436608
mov eax, dword [ebp - 0x20]
fild dword [ebp - 0x20]
test eax, eax
jns 0x4365d6
fadd dword [0x5f3aa0]
mov eax, dword [ebp - 0x24]
fild dword [ebp - 0x24]
test eax, eax
jns 0x4365e6
fadd dword [0x5f3aa0]
fdivp st(1)
mov eax, dword [ebp - 0x28]
fstp dword [ebp - 0x1c]
fld dword [ebp - 0x1c]
fild dword [ebp - 0x28]
test eax, eax
jns 0x4365fe
fadd dword [0x5f3aa0]
fmulp st(1)
call fcn.005a2a26
mov dword [ebp - 0x1c], eax
push edi
push edi
mov ecx, 0x6712b8
call fcn.00429c92
mov eax, dword [0x671294]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, edi
jl 0x43667b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push 2
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 4]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x43667b
mov eax, dword [ebp - 8]
fldz
mov ecx, dword [eax]
push 1
push ecx
push ecx
fstp qword [esp]
push edi
push edi
push 0x629db0
push dword [ebp - 0x18]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x43667b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [eax]
lea ecx, [ebx + 0xc]
push ecx
push edi
push dword [ebp - 8]
push eax
call dword [edx + 0x14]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 4], eax
jne 0x436686
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x436696
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x4366a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x4366b6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x4366c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x4366d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4366e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], edi
cmp dword [ebx + 0x28], edi
je 0x4366fc
mov eax, dword [ebx + 0x24]
cmp eax, edi
je 0x4366fc
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0x24], edi
mov eax, esi
jmp 0x436705
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret 4