Function at 0x100031ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 8
call fcn.1001978b
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x10049ea8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 8
call fcn.1001978b
add esp, 4
mov dword [ebp - 0x20], eax
mov edi, eax
mov esi, 0x10049ea8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], esp
push 0xb
push 0x3e9
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x1000329b
push 0x84
push 0x401849b
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10003869
mov dword [ebp - 0x2c], esp
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x100032d7
push 0x100
push 0x401849b
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003869
mov dword [ebp - 0x2c], esp
push dword [ebp - 4]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10003313
push 0x171
push 0x401849b
push 6
call fcn.1001977f
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10003869
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x910
call fcn.10019eb0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x1000335c
mov eax, 0x10049ea8
push eax
push 1
mov ebx, 0x168
call fcn.10019f70
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10003382
push ebx
call fcn.10019791
add esp, 4
lea eax, [ebp - 0x30]
push eax
call fcn.1000256f
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x1000339e
push ebx
call fcn.10019791
add esp, 4
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.100027d2
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x100033c7
push ebx
call fcn.10019791
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x100033d7
push ebx
call fcn.10019791
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x100033ea
mov eax, 0x10049ea8
push eax
push 1
mov ebx, 0x168
call fcn.10019f70
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x10003410
push ebx
call fcn.10019791
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10003424
push ebx
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x10049f0d
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000344d
mov eax, 0x10049ec8
push eax
push 3
mov ebx, 0x190
call fcn.1001a220
add esp, 0x28
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10003485
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10003481
imul eax, dword [ebx]
jmp 0x10003476
mov ecx, eax
test ecx, ecx
je 0x100034a4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x1000349d
push ebx
push eax
call fcn.10019791
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000348b
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x14]
call fcn.1000216b
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov ebx, eax
mov ecx, 1
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x10003830
mov ebx, dword [ebp - 0x14]
call fcn.10002184
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x100034fd
push 0x30d
push 0x401849b
push 4
call fcn.1001977f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x1000351a
push 0x30d
push 0x401849b
push 1
call fcn.1001977f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x10049f0f
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x10003549
mov eax, 0x10049ec8
push eax
push 3
mov ebx, 0x190
call fcn.1001a220
add esp, 0x28
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10003581
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x1000357d
imul eax, dword [ebx]
jmp 0x10003572
mov ecx, eax
test ecx, ecx
je 0x100035a0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10003599
push ebx
push eax
call fcn.10019791
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10003587
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x20]
call fcn.1000216b
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jne 0x100037ad
mov ebx, dword [ebp - 0x20]
call fcn.10002184
mov eax, 0
cmp eax, ecx
jl 0x100035e9
push 0x399
push 0x401849b
push 1
call fcn.1001977f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x10003606
mov eax, 0x10049ec8
push eax
push 1
mov ebx, 0x9dc
call fcn.1001a940
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
call fcn.10002184
mov eax, 0
cmp eax, ecx
jl 0x10003644
push 0x3fb
push 0x401849b
push 1
call fcn.1001977f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x10003661
mov eax, 0x10049ec8
push eax
push 1
mov ebx, 0x9dc
call fcn.1001a940
add esp, 0x10
cmp dword [ebp - 0x24], eax
jne 0x100036dd
mov ebx, dword [ebp - 0x20]
call fcn.10002184
mov eax, 0
cmp eax, ecx
jl 0x100036a5
push 0x436
push 0x401849b
push 1
call fcn.1001977f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x100036c2
mov eax, 0x10049ec8
push eax
push 1
mov ebx, 0x9dc
call fcn.1001a940
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x100036dd
push 0x80000301
push 0
push dword [ebp - 0x24]
push 1
mov ebx, 0x168
call fcn.10019f70
add esp, 0x10
mov dword [ebp - 0x2c], eax
push 0x10049ec6
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
mov ecx, 3
call fcn.10003192
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10003727
push ebx
call fcn.10019791
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1000373b
push ebx
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
call fcn.10002184
mov eax, 1
cmp eax, ecx
jl 0x10003767
push 0x500
push 0x401849b
push 1
call fcn.1001977f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x10003784
mov eax, 0x10049ec8
push eax
push 1
mov ebx, 0x9dc
call fcn.1001a940
add esp, 0x10
cmp dword [ebp - 0x24], eax
jne 0x100037a5
jmp 0x100037ad
inc dword [ebp - 0x24]
jmp 0x1000361c
mov ebx, dword [ebp - 0x20]
call fcn.1000216b
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jne 0x10003827
mov ebx, dword [ebp - 0x20]
call fcn.10002184
mov eax, 0
cmp eax, ecx
jl 0x100037ea
push 0x5ff
push 0x401849b
push 1
call fcn.1001977f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push 0x10049ec6
mov ebx, dword [ebp - 0x2c]
push dword [ebx]
push dword [ebp - 0x28]
mov ecx, 3
call fcn.10003192
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10003823
push ebx
call fcn.10019791
add esp, 4
pop eax
mov dword [ebp - 0x28], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x100034c9
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1000384f
push eax
mov ebx, eax
call fcn.10002100
inc eax
push eax
call fcn.1001978b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x1004ad2a]
test ebx, ebx
je 0x10003863
push ebx
call fcn.10019791
add esp, 4
pop eax
mov dword [0x1004ad2a], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10003879
push ebx
call fcn.10019791
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10003897
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10003893
imul eax, dword [ebx]
jmp 0x10003888
mov ecx, eax
test ecx, ecx
je 0x100038b6
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x100038af
push ebx
push eax
call fcn.10019791
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x1000389d
call fcn.10019791
add esp, 4
mov ebx, dword [ebp - 0x20]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x100038dc
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x100038d8
imul eax, dword [ebx]
jmp 0x100038cd
mov ecx, eax
test ecx, ecx
je 0x100038fb
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x100038f4
push ebx
push eax
call fcn.10019791
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x100038e2
call fcn.10019791
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10003913
push ebx
call fcn.10019791
add esp, 4
mov esp, ebp
pop ebp
ret 4