Function at 0x404520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4636ee
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x47e820]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e820]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.C:_aaa1_
mov dword [esp + 0x24c], 0
call fcn.0040aee0
call fcn.004016c0
add esp, 4
push str.MYDATA
push 0xbc
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x404855
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404855
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00424b49
add esp, 4
push esi
mov ebx, eax
push edi
push ebx
call fcn.0044cb80
mov edx, dword [ebx + esi - 8]
mov edi, dword [ebx + esi - 0xc]
mov esi, dword [ebx + esi - 4]
add esp, 0xc
cmp esi, 0x1388
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
ja 0x404855
xor ecx, ecx
mov eax, esi
mov edx, pe_nt_image_headers32
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424b49
mov ebp, eax
mov eax, esi
imul eax, eax, 0x108
add esp, 4
push eax
add edi, ebx
push edi
push ebp
mov dword [esp + 0x30], ebp
call fcn.0044cb80
add esp, 0xc
test esi, esi
mov dword [esp + 0x20], 0
jle 0x4047ff
add ebp, 0x100
push 0x109
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.0044c710
lea esi, [ebp - 0x100]
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404664
sub eax, edx
push eax
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00449b53
add esp, 0xc
call fcn.0042fdf3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40484b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x24c]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x248], 1
call fcn.00409f00
lea eax, [esp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4046c2
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040a560
call fcn.0042fdf3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40484b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 2
call fcn.0040adc0
lea edi, [esp + 0x18]
call fcn.00409270
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jl 0x404781
push str..rct
push eax
call fcn.00449d25
add esp, 8
test eax, eax
je 0x404781
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, 0xffffffff
je 0x404781
mov esi, dword [ebp + 4]
push ecx
mov ecx, 0x482dd4
call fcn.00425ab5
mov ecx, edi
mov dword [eax], esi
mov edx, dword [0x482df8]
push ecx
push edx
mov ecx, 0x482df0
call fcn.00425e92
mov eax, dword [esp + 0x18]
mov esi, dword [ebp]
push eax
mov ecx, 0x482db8
add esi, ebx
call fcn.00425ab5
mov dword [eax], esi
mov ecx, dword [ebp + 4]
mov eax, dword [ebp]
mov esi, dword [esp + 0x1c]
push ecx
add eax, ebx
push esi
call fcn.004177d0
mov byte [esp + 0x244], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x244], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 1
add ebp, 0x108
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jl 0x404645
mov ebp, dword [esp + 0x24]
push ebp
call fcn.00424b4e
add esp, 4
cmp dword [0x482df8], 0
jle 0x404816
call fcn.004048b0
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x404885
push 0x80004005
call fcn.0040aa40
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404883
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00448c81
add esp, 0x234
ret