Function at 0x41a080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x515612
mov eax, dword fs:[0]
push eax
sub esp, 0x444
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568cb8]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x470]
push 0x4c000
call fcn.0048097b
xor esi, esi
add esp, 4
cmp eax, esi
je 0x41a0e3
mov edx, 0x7ff
lea ecx, [eax + 0xc]
nop
mov dword [ecx], esi
add ecx, 0x98
sub edx, 1
jns 0x41a0d0
mov dword [esp + 0x38], eax
jmp 0x41a0e7
mov dword [esp + 0x38], esi
push 0x7800
call fcn.0048097b
add esp, 4
cmp eax, esi
je 0x41a110
mov edx, 0xff
lea ecx, [eax + 0xc]
mov dword [ecx], esi
add ecx, 0x78
sub edx, 1
jns 0x41a100
mov dword [esp + 0x44], eax
jmp 0x41a114
mov dword [esp + 0x44], esi
mov ecx, 0xb
lea eax, [esp + 0x1c0]
mov dword [eax], esi
add eax, 0x38
sub ecx, 1
jns 0x41a120
mov eax, 0x2d90
lea esi, [esp + 0x94]
call fcn.00419e00
mov eax, 0x2d90
lea esi, [esp + 0xa0]
mov dword [esp + 0x460], 0
call fcn.00419e00
mov eax, 0x10000
lea esi, [esp + 0x70]
mov byte [esp + 0x460], 1
call fcn.00419e00
mov eax, 0x10000
lea esi, [esp + 0x7c]
mov byte [esp + 0x460], 2
call fcn.00419e00
mov eax, 0x40000
lea esi, [esp + 0x64]
mov byte [esp + 0x460], 3
call fcn.00419e00
mov eax, 0x40000
lea esi, [esp + 0x88]
mov byte [esp + 0x460], 4
call fcn.00419e00
mov ecx, dword [esp + 0x474]
lea eax, [ebx*8]
sub eax, ebx
lea eax, [ecx + eax*8]
mov byte [esp + 0x460], 5
mov esi, dword [eax + 0x20]
mov edx, dword [eax + 0x1c]
push esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0x58], edx
call fcn.0048097b
add esp, 4
mov ebp, eax
push esi
mov dword [esp + 0x44], ebp
call fcn.0048097b
mov dword [esp + 0x5c], eax
xor ecx, ecx
add esp, 4
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048097b
mov edi, eax
xor ecx, ecx
mov eax, esi
shl eax, 6
add esp, 4
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x34], edi
neg ecx
or ecx, eax
push ecx
call fcn.0048097b
add esp, 4
cmp dword [esp + 0x38], 0
mov ebx, eax
mov dword [esp + 0x50], ebx
je 0x41ab1e
cmp dword [esp + 0x44], 0
je 0x41ab1e
test ebp, ebp
je 0x41ab1e
cmp dword [esp + 0x58], 0
je 0x41ab1e
test edi, edi
je 0x41ab1e
test ebx, ebx
je 0x41ab1e
mov eax, esi
shl eax, 7
push eax
push 0
push ebx
call fcn.004b83b0
xor ebp, ebp
add esp, 0xc
mov dword [esp + 0x48], ebp
test esi, esi
jle 0x41a962
mov edi, edi
test ebp, ebp
jle 0x41a2da
mov dword [edi + ebp*4 - 4], 0
mov eax, dword [edi + ebp*4 - 4]
xor ecx, ecx
add eax, dword [esp + ecx*4 + 0xb4]
add ecx, 4
add eax, dword [esp + ecx*4 + 0xa8]
add eax, dword [esp + ecx*4 + 0xac]
add eax, dword [esp + ecx*4 + 0xb0]
cmp ecx, 0x40
jl 0x41a2b2
mov dword [edi + ebp*4 - 4], eax
mov eax, dword [esp + 0x54]
cmp ebp, eax
jl 0x41a30c
mov ecx, ebp
sub ecx, eax
mov eax, dword [edi + ecx*4]
add eax, dword [edi + ebp*4 - 4]
jns 0x41a2f1
neg eax
cmp eax, 0x1000
jl 0x41a2ff
mov eax, 0xb
jmp 0x41a337
mov edx, dword [esp + 0x468]
mov eax, dword [edx + eax*4 + 0x20]
jmp 0x41a337
test ebp, ebp
jle 0x41a335
mov eax, dword [edi + ebp*4 - 4]
test eax, eax
jge 0x41a31a
neg eax
cmp eax, 0x1000
jl 0x41a328
mov eax, 0xb
jmp 0x41a337
mov ecx, dword [esp + 0x468]
mov eax, dword [ecx + eax*4 + 0x20]
jmp 0x41a337
xor eax, eax
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x468]
lea ecx, [esp + ecx*8 + 0x1b4]
call fcn.0041af70
mov edx, dword [esp + 0x40]
push 0x100
mov byte [edx + ebp], al
lea eax, [esp + 0xb8]
push 0
push eax
call fcn.004b83b0
add esp, 0xc
mov dword [esp + 0x20], 0x3f
lea esp, [esp]
mov ecx, dword [esp + 0x40]
movsx edx, byte [ecx + ebp]
inc edx
shl edx, 4
cmp dword [esp + 0x20], edx
jg 0x41a91e
mov eax, dword [esp + 0x20]
mov esi, dword [eax*4 + 0x5381d8]
mov edi, esi
and edi, reloc.WS2_32.dll_getsockopt
jns 0x41a3b0
dec edi
or edi, 0xfffffff8
inc edi
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ecx, [eax + edi]
cmp ecx, 7
mov dword [esp + 0x5c], eax
mov dword [esp + 0x3c], ecx
jl 0x41a3d3
mov dword [esp + 0x3c], 7
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp eax, 8
mov dword [edx + ebp*4], ecx
jge 0x41a430
lea ecx, [edi + eax*8]
lea edx, [esp + ecx*4 + 0xb4]
mov ecx, 8
sub ecx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
cmp edi, 8
jge 0x41a422
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + ebp*4]
mov edx, dword [esp + 0x1c]
mov eax, 8
sub eax, edi
add ecx, dword [edx]
add edx, 4
sub eax, 1
jne 0x41a411
mov edx, dword [esp + 0x34]
mov dword [edx + ebp*4], ecx
add dword [esp + 0x1c], 0x20
sub dword [esp + 0x14], 1
jne 0x41a3fa
xor ecx, ecx
mov eax, dword [esp + 0x54]
inc eax
cmp ebp, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
jl 0x41a6a0
mov ecx, ebp
shl ecx, 6
lea edx, [ecx + esi]
movsx eax, word [ebx + edx*2 - 0x80]
mov dword [esp + 0x30], eax
mov eax, ebp
sub eax, dword [esp + 0x54]
mov dword [esp + 0x2c], 0
shl eax, 6
lea edx, [eax + esi]
movsx ebp, word [ebx + edx*2]
lea edx, [ebx + edx*2]
mov dword [esp + 0x14], ebp
lea ebp, [eax + esi]
movsx ebp, word [ebx + ebp*2 - 0x80]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x4c], 0
test edi, edi
je 0x41a4fa
cmp dword [esp + 0x5c], 0
je 0x41a4fa
cmp esi, 1
jl 0x41a4ca
lea ebp, [ecx + esi]
movsx ebp, word [ebx + ebp*2 - 0x82]
mov dword [esp + 0x28], ebp
movsx ebp, word [edx - 2]
jmp 0x41a4ce
mov ebp, dword [esp + 0x2c]
cmp esi, 2
jl 0x41a4e2
lea edx, [ecx + esi]
movsx edx, word [ebx + edx*2 - 0x84]
mov dword [esp + 0x24], edx
cmp esi, 8
jl 0x41a54a
add ecx, esi
movsx ecx, word [ebx + ecx*2 - 0x90]
add eax, esi
movsx edx, word [ebx + eax*2 - 0x10]
jmp 0x41a542
lea ebp, [esi + 2]
cmp ebp, 0x40
jge 0x41a50e
lea ebp, [ecx + esi]
movsx ebp, word [ebx + ebp*2 - 0x7c]
mov dword [esp + 0x24], ebp
lea ebp, [esi + 1]
cmp ebp, 0x40
jge 0x41a528
lea ebp, [ecx + esi]
movsx ebp, word [ebx + ebp*2 - 0x7e]
mov dword [esp + 0x28], ebp
movsx ebp, word [edx + 2]
jmp 0x41a52c
mov ebp, dword [esp + 0x2c]
lea edx, [esi + 8]
cmp edx, 0x40
jge 0x41a54a
add ecx, esi
movsx ecx, word [ebx + ecx*2 - 0x70]
add eax, esi
movsx edx, word [ebx + eax*2 + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov eax, dword [esp + 0x1c]
cdq
xor eax, edx
sub eax, edx
lea esi, [eax + esi*2]
mov eax, dword [esp + 0x4c]
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov eax, ebp
mov ebp, dword [esp + 0x28]
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
add eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp edi, 3
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
jl 0x41a5af
mov dword [esp + 0x2c], 3
mov eax, dword [esp + 0x5c]
cmp eax, 3
mov edx, eax
jl 0x41a5bf
mov edx, 3
test ebx, ebx
je 0x41a5cf
xor eax, eax
test ebx, ebx
setle al
inc eax
mov esi, eax
jmp 0x41a5d1
xor esi, esi
test ecx, ecx
je 0x41a5e1
xor eax, eax
test ecx, ecx
setle al
inc eax
mov edi, eax
jmp 0x41a5e3
xor edi, edi
test ebp, ebp
je 0x41a5f3
xor ecx, ecx
test ebp, ebp
setle cl
inc ecx
mov ebp, ecx
jmp 0x41a5f5
xor ebp, ebp
mov eax, dword [esp + 0x24]
test eax, eax
je 0x41a609
xor ecx, ecx
test eax, eax
setle cl
inc ecx
mov eax, ecx
jmp 0x41a60b
xor eax, eax
xor ecx, ecx
cmp dword [esp + 0x1c], ecx
je 0x41a617
setle cl
inc ecx
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [ebp + eax*2]
add ecx, eax
lea eax, [edi + ecx*8]
add eax, ecx
lea ecx, [esi + eax*2]
add ecx, eax
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
lea edx, [edx + ecx*4]
lea ecx, [eax + edx*4]
mov dword [esp + 0x24], ecx
jne 0x41a69c
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
add ecx, ebx
mov eax, ecx
sub eax, ebx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
mov eax, ecx
sub eax, ebp
cdq
mov edi, eax
xor edi, edx
mov eax, ecx
mov ecx, dword [esp + 0x18]
sub eax, ecx
sub edi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, edi
jg 0x41a67e
cmp esi, eax
jg 0x41a67e
mov eax, ebx
jmp 0x41a686
cmp edi, eax
mov eax, ebp
jle 0x41a686
mov eax, ecx
lea edx, [eax + eax*2]
lea eax, [ebp + edx*2]
add eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x60], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + ebp*4]
mov ecx, dword [esp + 0x3c]
test eax, eax
jge 0x41a6b1
neg eax
cmp eax, 0x1000
jge 0x41a6c8
mov edx, dword [esp + 0x468]
mov edi, dword [edx + eax*4 + 0x20]
cmp edi, 9
jl 0x41a6cd
mov edi, 9
mov eax, dword [esp + 0x28]
test eax, eax
jge 0x41a6d7
neg eax
cmp eax, 0x1000
jge 0x41a6ee
mov edx, dword [esp + 0x468]
mov eax, dword [edx + eax*4 + 0x20]
cmp eax, 9
jl 0x41a6f3
mov eax, 9
mov ebx, dword [esp + 0x20]
shl ecx, 4
add ecx, eax
shl ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x40]
movsx ecx, byte [ecx + ebp]
shl ecx, 4
add ecx, eax
shl ecx, 4
add ecx, edi
mov esi, eax
mov eax, dword [esp + 0x468]
mov edx, edi
shl esi, 4
shl edx, 6
shl ecx, 6
add esi, edi
add edx, ebx
add ecx, ebx
test ebx, ebx
jne 0x41a80b
mov ecx, edx
lea ebx, [esp + 0x7c]
call fcn.00419e80
test eax, eax
jne 0x41a7f3
mov eax, dword [esp + 0x44]
mov edx, esi
shl edx, 4
sub edx, esi
lea ecx, [eax + edx*8]
mov eax, dword [esp + 0x468]
call fcn.0041ae60
mov esi, 1
test eax, eax
jle 0x41a7c0
mov ecx, eax
shl esi, cl
mov dword [esp + 0x14], 0
test eax, eax
jle 0x41a7b8
shl ecx, 4
add ecx, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], eax
mov edi, edi
mov eax, dword [esp + 0x468]
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0x88]
call fcn.00419e80
add eax, edi
add eax, eax
sub dword [esp + 0x18], 1
mov edi, eax
jne 0x41a790
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
shr eax, 1
add esi, eax
mov eax, dword [esp + 0x468]
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0xa0]
call fcn.00419e80
test eax, eax
je 0x41a7dd
neg esi
add esi, dword [esp + 0x60]
mov edx, dword [esp + 0x50]
mov ecx, ebp
shl ecx, 7
mov word [ecx + edx], si
jmp 0x41a8f3
mov edx, dword [esp + 0x50]
xor esi, esi
mov esi, dword [esp + 0x60]
mov ecx, ebp
shl ecx, 7
mov word [ecx + edx], si
jmp 0x41a8f3
lea ebx, [esp + 0x70]
call fcn.00419e80
test eax, eax
jne 0x41aa66
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x468]
lea ecx, [edx + edi]
imul ecx, ecx, 0x98
add ecx, dword [esp + 0x38]
call fcn.0041ad50
mov esi, eax
cmp esi, 4
jl 0x41a89e
lea ecx, [esi - 4]
mov esi, 1
test ecx, ecx
jle 0x41a89e
shl esi, cl
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x41a896
mov eax, dword [esp + 0x18]
add eax, ecx
shl eax, 4
add eax, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x468]
mov ecx, dword [esp + 0x30]
lea ebx, [esp + 0x64]
call fcn.00419e80
add eax, edi
add eax, eax
sub dword [esp + 0x18], 1
mov edi, eax
jne 0x41a871
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x14]
shr eax, 1
add esi, eax
mov eax, dword [esp + 0x468]
mov ecx, dword [esp + 0x24]
lea ebx, [esp + 0x94]
call fcn.00419e80
test eax, eax
je 0x41a8bb
neg esi
mov eax, dword [esp + 0x20]
mov ecx, dword [eax*4 + 0x5381d8]
mov edx, dword [esp + 0xb0]
mov edx, dword [edx]
mov ax, word [edx + eax*2]
mov edi, dword [esp + 0x50]
imul ax, si
mov edx, ebp
shl edx, 6
add edx, ecx
mov word [edi + edx*2], ax
cwde
cdq
xor eax, edx
sub eax, edx
mov dword [esp + ecx*4 + 0xb4], eax
mov eax, dword [esp + 0x470]
mov ecx, dword [esp + 0x46c]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
shl eax, 6
add eax, dword [esp + 0x20]
mov edx, dword [ecx + eax*4]
mov word [edx + ebp*2], si
mov esi, dword [esp + 0xac]
sub dword [esp + 0x20], 1
jns 0x41a380
mov eax, dword [esp + 0x468]
mov eax, dword [eax + 0x4020]
test eax, eax
je 0x41a955
mov ecx, dword [esp + 0x468]
mov edx, dword [ecx + 0x4024]
push edx
call eax
add esp, 4
test eax, eax
je 0x41aa6d
inc ebp
cmp ebp, esi
mov dword [esp + 0x48], ebp
jl 0x41a2a0
mov eax, dword [esp + 0x38]
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x48]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x44]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x5c]
add esp, 4
push eax
call fcn.004b7eaf
add esp, 4
push edi
call fcn.004b7eaf
add esp, 4
push ebx
call fcn.004b7eaf
mov ecx, dword [esp + 0x8c]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x90]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x68]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x6c]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x80]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x84]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x74]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x78]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0xa4]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0xa8]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x98]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x9c]
add esp, 4
push eax
call fcn.004b7eaf
add esp, 4
mov eax, 1
jmp 0x41abd4
xor esi, esi
jmp 0x41a8bb
mov eax, dword [esp + 0x88]
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x90]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x68]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x6c]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x80]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x84]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x74]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x78]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0xa4]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0xa8]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x98]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x9c]
add esp, 4
push edx
jmp 0x41abca
mov ecx, dword [esp + 0x88]
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x90]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x68]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x6c]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x80]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x84]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0x74]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x78]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0xa4]
add esp, 4
push eax
call fcn.004b7eaf
mov ecx, dword [esp + 0xa8]
add esp, 4
push ecx
call fcn.004b7eaf
mov edx, dword [esp + 0x98]
add esp, 4
push edx
call fcn.004b7eaf
mov eax, dword [esp + 0x9c]
add esp, 4
push eax
call fcn.004b7eaf
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x450
ret 0x10