Function at 0x404d76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 8
call fcn.0040e018
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x42008e
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, str.D3_6F_B8_C1_72_7A_E0_25_
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040523a
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404dee
push ebx
call fcn.0040e012
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404dfe
push ebx
call fcn.0040e012
add esp, 4
mov dword [ebp - 0x28], esp
push 0xa
push dword [ebp - 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
nop
nop
nop
nop
cmp dword [ebp - 0x28], esp
je 0x404e2a
push 6
call fcn.0040e01e
add esp, 4
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x404e3d
push ebx
call fcn.0040e012
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404faa
mov dword [ebp - 0x1c], esp
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x404e74
push 6
call fcn.0040e01e
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404faa
mov dword [ebp - 0x1c], esp
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x404ea8
push 6
call fcn.0040e01e
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404faa
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, str.28_BF_58_41_80_AB_62_F1_8A_
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040523a
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404ee6
push ebx
call fcn.0040e012
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404ef6
push ebx
call fcn.0040e012
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404f0a
push ebx
call fcn.0040e012
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x910
call fcn.0040fa40
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push htons
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x404f4a
mov eax, 0x42008e
push eax
push 1
mov ebx, 0x168
call fcn.0040f570
add esp, 0x10
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x404f70
push ebx
call fcn.0040e012
add esp, 4
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040523a
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x404f92
push ebx
call fcn.0040e012
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404fa6
push ebx
call fcn.0040e012
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x41a20c
push dword [ebp - 0x14]
call fcn.00401c4a
add esp, 8
cmp eax, 0
je 0x4051b8
push 0
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
push 0x4202e2
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x404fe8
mov eax, 0x41a20c
push eax
push 3
mov ebx, 0x190
call fcn.0040fa90
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x405020
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40501c
imul eax, dword [ebx]
jmp 0x405011
mov ecx, eax
test ecx, ecx
je 0x40503f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x405038
push ebx
push eax
call fcn.0040e012
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x405026
call fcn.0040e012
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
call fcn.00404d56
mov eax, 0
cmp eax, ecx
jl 0x405069
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x40508f
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0040e018
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x420c73]
test ebx, ebx
je 0x4050a3
push ebx
call fcn.0040e012
add esp, 4
pop eax
mov dword [0x420c73], eax
mov ebx, dword [ebp - 0x18]
call fcn.00404d56
mov eax, 1
cmp eax, ecx
jl 0x4050c7
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x4050e4
mov eax, 0x41a20c
push eax
push 1
mov ebx, 0x9dc
call fcn.0040f960
add esp, 0x10
mov dword [0x420c77], eax
mov ebx, dword [ebp - 0x18]
call fcn.00404d56
mov eax, 2
cmp eax, ecx
jl 0x40511a
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x405140
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0040e018
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x420c3b]
test ebx, ebx
je 0x405154
push ebx
call fcn.0040e012
add esp, 4
pop eax
mov dword [0x420c3b], eax
mov ebx, dword [ebp - 0x18]
call fcn.00404d56
mov eax, 3
cmp eax, ecx
jl 0x405178
push 1
call fcn.0040e01e
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x40519e
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0040e018
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x420c7b]
test ebx, ebx
je 0x4051b2
push ebx
call fcn.0040e012
add esp, 4
pop eax
mov dword [0x420c7b], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4051c8
push ebx
call fcn.0040e012
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4051d8
push ebx
call fcn.0040e012
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4051f6
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4051f2
imul eax, dword [ebx]
jmp 0x4051e7
mov ecx, eax
test ecx, ecx
je 0x405215
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40520e
push ebx
push eax
call fcn.0040e012
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4051fc
call fcn.0040e012
add esp, 4
mov esp, ebp
pop ebp
ret