Function at 0x421263
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 8
call fcn.0046cc83
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x4996d7
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 - 0x20], 0
mov dword [ebp - 0x28], 0
push 0x198
call fcn.0046cc83
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, eax
mov esi, 0x5f130c
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x64
rep stosd dword es:[edi], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
jmp 0x42131f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
mov dword [ebp - 0x44], esp
push 0
call dword [0x5f5ef2]
nop
nop
nop
nop
cmp dword [ebp - 0x44], esp
je 0x42137e
push 6
call fcn.0046cc8f
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push ecx
mov eax, dword fs:[0x18]
add eax, 0x100
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
add eax, 4
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
pop ecx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00421ba8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4213e7
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push getsockname
push 0
push 0x5f12f0
push getsockname
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x42141e
mov eax, 0x4996d7
push eax
push 3
mov ebx, 0x1c4
call fcn.0046fcb0
add esp, 0x28
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x421456
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x421452
imul eax, dword [ebx]
jmp 0x421447
mov ecx, eax
test ecx, ecx
je 0x421475
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x42146e
push ebx
push eax
call fcn.0046cc7d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x42145c
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040122a
mov dword [ebp - 0x44], eax
push getsockname
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4214a0
mov eax, 0x4996d7
push eax
push 1
mov ebx, 0x194
call fcn.0046dd20
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.0046d800
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 8
call fcn.0046cc83
add esp, 4
mov dword [ebp - 0x50], eax
mov edi, eax
mov esi, 0x4996d7
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x44]
call fcn.0040f411
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x42150d
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x50]
push ebx
call fcn.0046cc7d
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x64
jg 0x42158c
mov ebx, dword [ebp - 0x2c]
call fcn.00401747
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x421559
push 4
call fcn.0046cc8f
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x42156c
push 1
call fcn.0046cc8f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0xff
push 1
call fcn.0040c107
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
pop ebx
pop ecx
jmp 0x42152e
add esp, 8
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x64
jg 0x4215f7
mov ebx, dword [0x5f5e7a]
call fcn.00401747
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4215c4
push 4
call fcn.0046cc8f
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4215d7
push 1
call fcn.0046cc8f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0xff
push 1
call fcn.0040c107
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
pop ebx
pop ecx
jmp 0x421596
add esp, 8
push 0x9fb
push 0x64
call fcn.0040c107
mov dword [0x5f5e7e], eax
mov ebx, dword [ebp - 0x1c]
call fcn.00401767
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 8
jne 0x421ac3
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 8
jg 0x4217b8
cmp dword [ebp - 0x28], 8
je 0x421716
mov ebx, dword [ebp - 0x1c]
call fcn.00401747
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x42165f
push 4
call fcn.0046cc8f
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x421672
push 1
call fcn.0046cc8f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x44]
call fcn.00417624
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0046dda0
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 0x80000101
push 0
push 0x2a
push 1
mov ebx, 0x140
call fcn.0046fae0
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
mov ecx, 3
call fcn.004126dc
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4216e9
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x4216f9
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x42170d
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
jmp 0x4217b1
mov ebx, dword [ebp - 0x1c]
call fcn.00401747
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x421733
push 4
call fcn.0046cc8f
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x421746
push 1
call fcn.0046cc8f
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x44]
call fcn.00417624
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0046dda0
add esp, 0x10
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
mov ecx, 2
call fcn.004126dc
add esp, 8
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x421799
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4217ad
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
pop ebx
pop ecx
jmp 0x42162a
add esp, 8
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4217d9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4217d5
imul eax, dword [ebx]
jmp 0x4217ca
mov ecx, eax
test ecx, ecx
je 0x4217f8
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4217f1
push ebx
push eax
call fcn.0046cc7d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4217df
call fcn.0046cc7d
add esp, 4
mov eax, 0x4996d7
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0x54998114
mov dword [ebp - 0x38], 0x21f240af
mov eax, dword fs:[0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.00421eac
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [0x5f5e82]
test ebx, ebx
je 0x421845
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [0x5f5e82], eax
push 0x5f5e82
call fcn.00419014
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x42186c
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push getsockname
push 0
mov eax, dword [0x5f5e82]
test eax, eax
jne 0x421885
mov eax, 0x4996d7
push eax
push 1
mov ebx, 0x194
call fcn.0046dd20
add esp, 0x10
mov dword [ebp - 0x44], eax
push getsockname
push 0
push 0x5f09fe
push 0x80000301
push 0
push dword [ebp - 0x44]
push 2
mov ebx, 0x1c0
call fcn.0046f960
add esp, 0x1c
mov dword [ebp - 0x48], eax
push 0x5f5e82
call fcn.0040122a
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push getsockname
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x4218f1
mov eax, 0x4996d7
push eax
push 3
mov ebx, 0x914
call fcn.0046d960
add esp, 0x28
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x421914
push ebx
call fcn.0046cc7d
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x421927
mov eax, 0x4992db
push eax
push 1
mov ebx, 0x198
call fcn.0046dc10
add esp, 0x10
mov dword [ebp - 0x44], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x421950
mov eax, 0x4992db
push eax
push 1
mov ebx, 0x198
call fcn.0046dc10
add esp, 0x10
mov dword [ebp - 0x48], eax
push 0x80000301
push 0
push dword [ebp - 0x34]
push 1
mov ebx, 0x198
call fcn.0046dc10
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
push 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00420d53
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x4219b3
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4219c3
push ebx
call fcn.0046cc7d
add esp, 4
push 0x80000301
push 0
push dword [0x5f5d7e]
push 1
mov ebx, 0x198
call fcn.0046dc10
add esp, 0x10
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
push 0x5f12fc
push dword [ebp - 0x54]
push 0x5f12fc
push dword [ebp - 0x44]
mov ecx, 5
call fcn.0040bedd
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x421a1b
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x421a2b
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x421a3b
push ebx
call fcn.0046cc7d
add esp, 4
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x421a52
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040122a
mov dword [ebp - 0x44], eax
push getsockname
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x421a75
mov eax, 0x4996d7
push eax
push 1
mov ebx, 0x194
call fcn.0046dd20
add esp, 0x10
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fdiv qword [0x49956c]
fstp qword [ebp - 0x58]
push 0x80000601
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push 1
mov ebx, 0x9dc
call fcn.0046e220
add esp, 0x10
push eax
push dword [ebp - 0x44]
call fcn.00422f80
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x421add
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0046cc83
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x421b11
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x421b22
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x421b40
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x421b3c
imul eax, dword [ebx]
jmp 0x421b31
mov ecx, eax
test ecx, ecx
je 0x421b5f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x421b58
push ebx
push eax
call fcn.0046cc7d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x421b46
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x421b83
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x421b93
push ebx
call fcn.0046cc7d
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x421ba3
push ebx
call fcn.0046cc7d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret