Function at 0x4038dd
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
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 8
call fcn.0043e388
add esp, 4
mov dword [ebp - 0x24], eax
mov edi, eax
mov esi, 0x46a40c
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.00404908
mov eax, 0x46a414
push eax
mov ebx, dword [0x46f8dd]
test ebx, ebx
je 0x40396c
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8dd], eax
mov dword [ebp - 0x34], esp
push str.MYDATA
push 0x87
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4039aa
push 0xde
push 0x4014d43
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4045d4
mov dword [ebp - 0x34], esp
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4039e8
push 0x15f
push 0x4014d43
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4045d4
mov dword [ebp - 0x34], esp
push dword [ebp - 4]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x403a26
push 0x1d2
push 0x4014d43
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4045d4
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0x910
call fcn.00440690
add esp, 0x1c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403a70
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x403a87
mov eax, 0x46a40c
push eax
push 1
mov ebx, 4
mov eax, 0x446090
call fcn.0043ed20
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x403ab6
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x403acd
mov eax, 0x46a40c
push eax
push 1
mov ebx, 0x168
call fcn.0043fa10
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x403af7
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push 0x46a2f3
push dword [ebp - 0x18]
call fcn.004010c1
add esp, 8
cmp eax, 0
je 0x4045d4
lea eax, [ebp - 0x18]
push eax
call fcn.00404b01
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x403b34
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 1
mov eax, 0x46a41d
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404f6c
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x403b62
push ebx
call fcn.0043e38e
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x403b75
mov eax, 0x46a40c
push eax
push 1
mov ebx, 0x168
call fcn.0043fa10
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x403b9b
push ebx
call fcn.0043e38e
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x403baf
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x46a420
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x403bd8
mov eax, 0x46a2f3
push eax
push 3
mov ebx, 0x190
call fcn.00440450
add esp, 0x28
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403c10
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403c0c
imul eax, dword [ebx]
jmp 0x403c01
mov ecx, eax
test ecx, ecx
je 0x403c2f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x403c28
push ebx
push eax
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403c16
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
call fcn.004038c4
xor ecx, ecx
push eax
lea eax, [ebp - 0x28]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4045d1
cmp dword [ebp - 0x28], 1
jne 0x403ca1
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0
cmp eax, ecx
jl 0x403c8c
push 0x465
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.0040592c
jmp 0x4045c9
cmp dword [ebp - 0x28], 2
jne 0x403d13
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 1
cmp eax, ecx
jl 0x403cd3
push 0x4bc
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x403cf9
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x403d0a
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 3
jne 0x403d5a
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 2
cmp eax, ecx
jl 0x403d45
push 0x565
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00405deb
jmp 0x4045c9
cmp dword [ebp - 0x28], 4
jne 0x403da1
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 3
cmp eax, ecx
jl 0x403d8c
push 0x5bc
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00405e5b
jmp 0x4045c9
cmp dword [ebp - 0x28], 5
jne 0x403de8
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 4
cmp eax, ecx
jl 0x403dd3
push 0x613
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00405eb2
jmp 0x4045c9
cmp dword [ebp - 0x28], 6
jne 0x403e2f
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 5
cmp eax, ecx
jl 0x403e1a
push 0x66a
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00405f09
jmp 0x4045c9
cmp dword [ebp - 0x28], 7
jne 0x403e76
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 6
cmp eax, ecx
jl 0x403e61
push 0x6c1
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.004062b4
jmp 0x4045c9
cmp dword [ebp - 0x28], 8
jne 0x403ebd
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 7
cmp eax, ecx
jl 0x403ea8
push 0x718
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.0040652f
jmp 0x4045c9
cmp dword [ebp - 0x28], 9
jne 0x403f04
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 8
cmp eax, ecx
jl 0x403eef
push 0x76f
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00406586
jmp 0x4045c9
cmp dword [ebp - 0x28], 0xa
jne 0x403f4b
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 9
cmp eax, ecx
jl 0x403f36
push 0x7c6
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00406601
jmp 0x4045c9
cmp dword [ebp - 0x28], 0xb
jne 0x403f92
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0xa
cmp eax, ecx
jl 0x403f7d
push 0x81d
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00406658
jmp 0x4045c9
cmp dword [ebp - 0x28], 0xc
jne 0x403fd9
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0xb
cmp eax, ecx
jl 0x403fc4
push 0x874
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.004066af
jmp 0x4045c9
cmp dword [ebp - 0x28], 0xd
jne 0x403fe8
jmp 0x4045c9
cmp dword [ebp - 0x28], 0xe
jne 0x40402f
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0xd
cmp eax, ecx
jl 0x40401a
push 0x931
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00406706
jmp 0x4045c9
cmp dword [ebp - 0x28], 0xf
jne 0x404076
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0xe
cmp eax, ecx
jl 0x404061
push 0x988
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.00406870
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x10
jne 0x4040bd
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0xf
cmp eax, ecx
jl 0x4040a8
push 0x9df
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push dword [ebp - 0x34]
call fcn.004068c7
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x11
jne 0x404134
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x10
cmp eax, ecx
jl 0x4040ef
push 0xa36
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x404115
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x46f8e1]
test ebx, ebx
je 0x404129
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8e1], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x12
jne 0x4041a6
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x11
cmp eax, ecx
jl 0x404166
push 0xa94
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x40418c
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40419d
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x13
jne 0x40421d
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x12
cmp eax, ecx
jl 0x4041d8
push 0xb14
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x4041fe
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x46f8dd]
test ebx, ebx
je 0x404212
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8dd], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x14
jne 0x404294
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x13
cmp eax, ecx
jl 0x40424f
push 0xb77
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x404275
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x46f8e5]
test ebx, ebx
je 0x404289
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8e5], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x15
jne 0x40430b
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x14
cmp eax, ecx
jl 0x4042c6
push 0xbda
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
je 0x4042ec
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x46f8e9]
test ebx, ebx
je 0x404300
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8e9], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x16
jne 0x404392
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x15
cmp eax, ecx
jl 0x40433d
push 0xc66
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
jne 0x40435a
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x178
call fcn.004406e0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [0x46f881]
test ebx, ebx
je 0x404387
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f881], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x17
jne 0x404415
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x16
cmp eax, ecx
jl 0x4043c4
push 0xce3
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
jne 0x4043e1
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x178
call fcn.004406e0
add esp, 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040691e
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x404410
push ebx
call fcn.0043e38e
add esp, 4
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x18
jne 0x40449c
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x17
cmp eax, ecx
jl 0x404447
push 0xd6e
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
jne 0x404464
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x178
call fcn.004406e0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [0x46f8ed]
test ebx, ebx
je 0x404491
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8ed], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x19
jne 0x404523
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x18
cmp eax, ecx
jl 0x4044ce
push 0xe02
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
jne 0x4044eb
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x178
call fcn.004406e0
add esp, 0x10
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [0x46f8bd]
test ebx, ebx
je 0x404518
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8bd], eax
jmp 0x4045c9
cmp dword [ebp - 0x28], 0x1a
jne 0x4045c9
mov ebx, dword [ebp - 0x24]
call fcn.00402754
mov eax, 0x19
cmp eax, ecx
jl 0x404555
push 0xedb
push 0x4014d43
push 1
call fcn.0043e37c
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x34], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx]
test eax, eax
jne 0x404572
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x178
call fcn.004406e0
add esp, 0x10
mov dword [ebp - 0x38], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40459b
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x9dc
call fcn.004405b0
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4045c1
push ebx
call fcn.0043e38e
add esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [0x46f899], eax
pop eax
pop ebx
pop ecx
jmp 0x403c4c
add esp, 0xc
push 0x46a379
push dword [0x46f8f1]
call fcn.004010c1
add esp, 8
cmp eax, 0
jne 0x4046d1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x46f875]
test eax, eax
jne 0x404605
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x198
call fcn.004409c0
add esp, 0x10
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x46a422
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x404640
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0xc
mov eax, 0x4464f0
call fcn.0043ed20
add esp, 0x28
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40466b
push ebx
call fcn.0043e38e
add esp, 4
lea eax, [ebp - 0x38]
push eax
call fcn.004069bc
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x404687
push ebx
call fcn.0043e38e
add esp, 4
push 0x46a424
push dword [ebp - 0x3c]
mov ecx, 2
call fcn.004019df
add esp, 8
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4046af
push ebx
call fcn.0043e38e
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [0x46f8d5]
test ebx, ebx
je 0x4046c6
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8d5], eax
jmp 0x404709
push 0x46a424
push dword [0x46f875]
mov ecx, 2
call fcn.004019df
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [0x46f8d5]
test ebx, ebx
je 0x404703
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [0x46f8d5], eax
push 0x46a2f3
push dword [ebp - 0x2c]
call fcn.004010c1
add esp, 8
cmp eax, 0
je 0x4047a3
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x404735
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x178
call fcn.004406e0
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40475f
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
push 0x46a379
push dword [ebp - 0x30]
call fcn.004010c1
add esp, 8
cmp eax, 0
je 0x404796
mov eax, 0x46a429
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x404792
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004071e7
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4047b3
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4047c3
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4047d3
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4047e3
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4047f3
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x24]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x404811
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40480d
imul eax, dword [ebx]
jmp 0x404802
mov ecx, eax
test ecx, ecx
je 0x404830
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x404829
push ebx
push eax
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x404817
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x404848
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x404858
push ebx
call fcn.0043e38e
add esp, 4
mov esp, ebp
pop ebp
ret