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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x5f1014]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [esp + 0x64], eax
mov eax, 0x88888889
push edi
mov edi, ecx
mov dword [esp + 0x64], edx
push 0x3c
push 0
mov dword [esp + 0x2c], edi
mov esi, dword [edi + 0xfa4]
mov ecx, dword [edi + 0xfa8]
imul esi
add edx, esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x60], eax
mov eax, 0x88888889
imul ecx
lea eax, [edi + 0xbd8]
add edx, ecx
mov dword [esp + 0x58], eax
sar edx, 3
lea eax, [esp + 0x88]
mov esi, edx
shr esi, 0x1f
add esi, edx
sub esi, dword [esp + 0x60]
push eax
mov dword [esp + 0x6c], esi
call fcn.0057b850
mov eax, dword [edi + 0xf9c]
add esp, 0xc
cdq
and edx, 0xff
lea ecx, [edx + eax]
mov eax, dword [edi + 0xfa0]
cdq
and edx, 0xff
sar ecx, 8
add eax, edx
mov dword [esp + 0x54], ecx
sar eax, 8
mov dword [esp + 0x4c], eax
cmp ecx, eax
jge 0x4722a3
xor edx, edx
mov dword [esp + 0x44], edx
test esi, esi
jle 0x4722a3
lea eax, [edi + 0xb80]
mov dword [esp + 0x5c], eax
nop word [eax + eax]
mov esi, dword [edi + 0xbd0]
lea eax, [edx + 1]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 8]
mov ecx, dword [eax + edx*4]
mov eax, dword [edi + 0xbd4]
xor edi, edi
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x4719b3
mov eax, dword [esp + 0x58]
add eax, edx
mov edx, eax
shl edx, 4
sub edx, eax
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 8]
sub edx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov eax, dword [esp + edx*4 + 0x80]
test eax, eax
je 0x47196f
mov dword [eax + 4], ecx
mov dword [ecx], eax
mov eax, dword [ecx + 0xc]
cmp eax, esi
mov dword [ecx + 4], 0
cmovge eax, esi
mov dword [esp + edx*4 + 0x80], ecx
mov esi, eax
mov eax, dword [ecx + 0x48]
or eax, dword [ecx + 0x4c]
jne 0x471998
mov eax, 1
jmp 0x47199a
xor eax, eax
and dword [esp + 0x2c], eax
cmp edx, edi
mov eax, dword [esp + 0x48]
mov ecx, eax
cmovle edx, edi
mov edi, edx
test eax, eax
jne 0x471954
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [edx + 0xbd4], eax
mov dword [edx + 0xbd0], esi
test edi, edi
jne 0x471da3
mov eax, dword [esp + 0x80]
test eax, eax
je 0x471a0e
mov esi, dword [edx + 0xb30]
lea ecx, [esp + 0x2c]
push ecx
or edx, 0xffffffff
mov dword [esp + 0x30], eax
mov ecx, eax
call fcn.00471090
mov edx, dword [esp + 0x30]
add esp, 4
mov ecx, esi
call fcn.00471020
mov edx, dword [esp + 0x24]
mov dword [esp + 0x80], edi
mov dword [edx + 0xb30], eax
mov edi, dword [edx + 0xb30]
lea eax, [edx + 0xb80]
mov dword [esp + 0x38], edi
cmp edi, eax
jne 0x471a66
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov dword [edi + 0xbd0], 0x7fffffff
mov dword [edi + 0xbd4], 1
cmp esi, ecx
jge 0x472295
mov eax, dword [edi + 8]
lea eax, [eax + esi*4]
cmp dword [eax], 0
jne 0x472295
inc esi
add eax, 4
cmp esi, ecx
jl 0x471a50
jmp 0x472295
mov edx, dword [edx + 0xbd0]
mov dword [esp + 0x20], accept
test edx, edx
jg 0x471abb
mov ecx, edi
mov edx, accept
mov esi, 1
test ecx, ecx
je 0x471aab
mov eax, edx
mov edx, dword [ecx + 0xc]
cmp edx, eax
cmovge edx, eax
mov eax, dword [ecx + 0x48]
or eax, dword [ecx + 0x4c]
jne 0x471aa1
mov eax, 1
jmp 0x471aa3
xor eax, eax
mov ecx, dword [ecx]
and esi, eax
test ecx, ecx
jne 0x471a88
mov eax, dword [esp + 0x24]
mov dword [eax + 0xbd4], esi
mov dword [eax + 0xbd0], edx
cmp edx, 0xf
jl 0x471d9f
mov edx, edi
mov dword [esp + 0x28], edi
nop word [eax + eax]
mov eax, dword [edx + 0x48]
or eax, dword [edx + 0x4c]
je 0x471b61
movups xmm0, xmmword [edx + 0x18]
mov esi, dword [edx + 0x40]
mov edi, dword [edx + 0x44]
movd eax, xmm0
movaps xmmword [esp + 0x70], xmm0
add eax, dword [edx + 0x38]
add esi, dword [esp + 0x78]
mov dword [esp + 0x10], eax
adc edi, dword [esp + 0x7c]
test edi, edi
jg 0x471b19
jl 0x471b08
test esi, esi
jae 0x471b19
mov ecx, dword [edx + 0x48]
dec eax
add esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x4c]
adc edi, eax
jmp 0x471b31
mov eax, dword [edx + 0x4c]
mov ecx, dword [edx + 0x48]
cmp edi, eax
jl 0x471b31
jg 0x471b29
cmp esi, ecx
jb 0x471b31
inc dword [esp + 0x10]
sub esi, ecx
sbb edi, eax
push 0
push 2
push eax
push ecx
call fcn.0059ee30
cmp edi, edx
jl 0x471b55
jg 0x471b46
cmp esi, eax
jb 0x471b55
mov edx, dword [esp + 0x28]
mov eax, 1
add eax, dword [esp + 0x10]
jmp 0x471b64
mov edx, dword [esp + 0x28]
xor eax, eax
mov eax, dword [esp + 0x10]
jmp 0x471b64
mov eax, dword [edx + 0x14]
cmp eax, dword [esp + 0x20]
jl 0x471d9f
mov edx, dword [edx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
cmp edx, dword [esp + 0x5c]
jne 0x471ad0
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x38]
add eax, 0x18
mov dword [esp + 0x2c], eax
add dword [edi + 0xc], 0xfffffff1
jne 0x471bb4
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x24]
mov dword [eax + 0xbd0], 0xffffffff
mov edx, dword [edi + 0x10]
mov esi, dword [edi]
nop dword [eax]
add dword [esi + 0xc], 0xfffffff1
jne 0x471be3
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0xbd0], 0xffffffff
add edx, dword [esi + 0x10]
mov dword [esp + 0x3c], edx
test dword [esp + 0x64], edx
jne 0x471bfe
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x471cb6
mov edx, dword [esi + 0x48]
mov eax, edx
or eax, dword [esi + 0x4c]
je 0x471cab
mov ecx, dword [esi + 0x38]
add ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x40]
add edi, dword [esi + 0x20]
mov eax, dword [esi + 0x44]
adc eax, dword [esi + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esi + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
test eax, eax
jg 0x471c4a
jl 0x471c39
test edi, edi
jae 0x471c4a
dec ecx
add edi, edx
mov dword [esp + 0x10], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x4c]
adc eax, ecx
jmp 0x471c6a
mov ecx, dword [esi + 0x4c]
cmp eax, ecx
jl 0x471c74
jg 0x471c57
cmp edi, edx
jb 0x471c74
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
mov dword [esi + 0x18], edx
mov edx, dword [esi + 0x48]
sub edi, edx
sbb eax, ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edi
mov dword [esp + 0x20], eax
push 0
push 2
push ecx
push edx
call fcn.0059ee30
cmp dword [esp + 0x20], edx
jl 0x471ca2
jg 0x471c8b
cmp edi, eax
jb 0x471ca2
mov edx, dword [esp + 0x3c]
mov eax, 1
add eax, dword [esp + 0x10]
mov dword [esi + 0x14], eax
mov esi, dword [esi]
jmp 0x471bc0
xor eax, eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x14], eax
mov esi, dword [esi]
mov edx, dword [esp + 0x3c]
jmp 0x471bc0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
push 1
lea edi, [ecx + 0xbd8]
mov eax, dword [eax]
mov dword [ecx + 0xbf4], eax
mov ecx, edi
call fcn.00470be0
add esp, 4
mov edx, esi
mov ecx, edi
push 0xffffffffffffffff
call fcn.00470be0
mov edi, dword [esi]
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x38], edi
cmp ecx, edi
jne 0x471b91
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x40]
cmp dword [edi + 0xbd4], 0
je 0x471ff9
mov edx, dword [esp + 0x60]
cmp esi, edx
jge 0x471ff9
nop dword [eax]
mov eax, dword [edi + 8]
cmp dword [eax + esi*4], 0
jne 0x471d42
mov eax, dword [edi + 0xbd0]
cmp eax, 0x1e
jl 0x471d42
add eax, 0xfffffff1
inc esi
mov dword [edi + 0xbd0], eax
cmp esi, edx
jl 0x471d20
mov edx, dword [esp + 0x44]
mov dword [esp + 0x40], esi
lea eax, [edx + 1]
cmp esi, eax
je 0x471ffd
mov eax, esi
sub eax, edx
mov edx, dword [edi + 0xb30]
dec eax
mov esi, eax
shl esi, 4
sub esi, eax
cmp edx, ecx
je 0x471ff5
nop
sub dword [edx + 0xc], esi
jne 0x471d94
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0xb80]
mov dword [edi + 0xbd0], 0xffffffff
mov edx, dword [edx]
cmp edx, ecx
jne 0x471d70
jmp 0x471ff5
mov edx, dword [esp + 0x24]
xor edi, edi
lea eax, [edx + 0xbf0]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + edi*4 + 0x80]
test ecx, ecx
je 0x471df8
mov esi, dword [edx + 0xb30]
lea eax, [esp + 0x20]
push eax
or edx, 0xffffffff
mov dword [esp + 0x24], ecx
call fcn.00471090
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, esi
call fcn.00471020
mov edx, dword [esp + 0x24]
mov dword [esp + edi*4 + 0x80], 0
mov dword [edx + 0xb30], eax
mov esi, dword [edx + 0xb30]
lea eax, [edx + 0xbd8]
xor edi, edi
mov ecx, accept
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], ecx
mov dword [edi], eax
lea eax, [edx + 0xb80]
mov edi, 0
cmp eax, esi
je 0x471fdf
add dword [esi + 0xc], 0xffffffff
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
je 0x471f36
mov ecx, eax
mov eax, dword [esi + 0x48]
or eax, dword [esi + 0x4c]
je 0x471ef5
mov ecx, dword [esi + 0x28]
add ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x30]
add edi, dword [esi + 0x20]
mov eax, dword [esi + 0x34]
adc eax, dword [esi + 0x24]
mov dword [esp + 0x28], ecx
mov dword [esi + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], eax
test eax, eax
jg 0x471e96
jl 0x471e82
test edi, edi
jae 0x471e96
mov edx, dword [esi + 0x4c]
dec ecx
mov dword [esp + 0x28], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x48]
add edi, ecx
adc eax, edx
jmp 0x471eba
mov edx, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
cmp eax, edx
jl 0x471ec4
jg 0x471ea6
cmp edi, ecx
jb 0x471ec4
mov eax, dword [esp + 0x28]
inc eax
sub edi, ecx
mov dword [esp + 0x28], eax
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x10]
sbb eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edi
mov dword [esp + 0x10], eax
push 0
push 2
push edx
push ecx
call fcn.0059ee30
cmp dword [esp + 0x10], edx
jl 0x471ee2
jg 0x471edb
cmp edi, eax
jb 0x471ee2
mov eax, 1
jmp 0x471ee4
xor eax, eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add ecx, eax
mov edi, dword [esp + 0x34]
mov dword [esi + 0x14], ecx
cmp ecx, dword [esp + 0x48]
jge 0x471f1e
mov eax, dword [esi + 4]
mov dword [eax], edx
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 0x14]
jl 0x471f06
mov ecx, dword [eax]
mov dword [ecx + 4], esi
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [eax], esi
jmp 0x471f22
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0xbd0], 0xffffffff
jmp 0x471f41
mov eax, dword [esi + 4]
mov dword [eax], edx
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
add edi, dword [esi + 0x10]
mov dword [esp + 0x34], edi
test dword [esp + 0x64], edi
jne 0x471fc0
mov eax, dword [esp + 0x38]
cmp dword [edx + 0x14], eax
je 0x471fcf
cmp ecx, eax
je 0x471fb9
mov edx, ecx
movzx esi, cl
mov ecx, dword [esp + 0x38]
sar edx, 8
sar eax, 8
movzx edi, cl
mov ecx, dword [esp + 0x50]
cmp edx, eax
je 0x471fa4
push eax
call fcn.00470a60
neg edi
lea ecx, [esi + esi]
add edi, edi
add esp, 4
add word [eax + 8], cx
mov ecx, accept
inc word [eax + 0xa]
add word [edx + 8], di
dec word [edx + 0xa]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
jmp 0x471fcb
call fcn.00470a00
mov edx, dword [esp + 0x20]
sub esi, edi
mov edi, dword [esp + 0x34]
add esi, esi
add word [eax + 8], si
mov ecx, accept
jmp 0x471fcb
cmp ecx, 0x80000000
cmove ecx, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov esi, edx
cmp dword [esp + 0x5c], edx
jne 0x471e30
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
inc edi
mov dword [esp + 0x3c], edi
cmp edi, 0xf
jl 0x471db3
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
cmp dword [ebp + 8], 0
mov ecx, dword [edi + 0xd98]
mov dword [esp + 0x34], ecx
je 0x472203
mov eax, dword [esp + 0x50]
xor esi, esi
mov edi, dword [esp + 0x54]
xor ecx, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], 0xffffffff
mov edx, dword [eax]
mov eax, dword [esp + 0x24]
add eax, 0xbe4
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ecx
cmp edx, eax
je 0x47222c
mov eax, edi
cmp dword [edx + 4], eax
jge 0x472064
mov ax, si
mov esi, edi
add ax, word [edx + 0xa]
mov edx, dword [edx]
cmp dword [edx + 4], esi
jl 0x472050
mov word [esp + 0x30], ax
mov esi, dword [esp + 0x30]
shl esi, 9
movzx eax, si
xor esi, esi
mov dword [esp + 0x30], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x4c]
jge 0x47218e
mov di, word [esp + 0x30]
mov eax, dword [esp + 0x20]
nop word [eax + eax]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x10], eax
jle 0x4720d1
cmp di, cx
je 0x4720d1
mov ecx, dword [esp + 0x34]
mov dword [ecx + esi*8], eax
movsx ecx, di
mov eax, ecx
add ecx, 0x100
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x34]
sar eax, 9
mov byte [ecx + esi*8 + 4], al
inc esi
movzx eax, di
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
movsx ecx, word [edx + 0xa]
mov eax, 0x200
cwde
imul ecx, eax
add di, cx
mov ecx, dword [esp + 0x38]
movzx eax, di
mov dword [esp + 0x48], eax
mov ax, di
sub ax, word [edx + 8]
movzx eax, ax
mov dword [esp + 0x3c], eax
cmp ax, cx
je 0x47213d
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov dword [ecx + esi*8], eax
mov eax, dword [esp + 0x3c]
movsx ecx, ax
mov eax, ecx
add ecx, 0x100
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x34]
sar eax, 9
mov byte [ecx + esi*8 + 4], al
inc esi
mov eax, dword [esp + 0x3c]
movzx ecx, ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], eax
mov edx, dword [edx]
movzx eax, cx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 4]
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
jl 0x472090
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov edi, edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
movzx eax, ax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x6c]
movzx ecx, ax
cmp edx, dword [esp + 0x4c]
jg 0x4721c0
mov ax, word [esp + 0x30]
mov edx, dword [esp + 0x34]
cmp ax, cx
je 0x4721c4
movsx ecx, ax
mov eax, ecx
mov dword [edx + esi*8], edi
shl eax, 4
add ecx, 0x100
add eax, ecx
movzx ecx, word [esp + 0x30]
sar eax, 9
mov byte [edx + esi*8 + 4], al
mov eax, edi
inc esi
jmp 0x4721c8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
cmp eax, edi
jge 0x4721de
test cx, cx
je 0x4721de
mov dword [edx + esi*8], edi
mov byte [edx + esi*8 + 4], 0
inc esi
push esi
mov esi, dword [esp + 0x44]
mov eax, esi
sub eax, dword [esp + 0x48]
push edx
push eax
mov eax, dword [esp + 0x64]
add eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0x14
jmp 0x472230
push dword [esp + 0x4c]
mov eax, esi
push dword [esp + 0x58]
sub eax, edx
push eax
mov eax, dword [esp + 0x64]
add eax, edx
mov edx, dword [esp + 0x74]
push eax
push ecx
lea ecx, [edi + 0xbd8]
call fcn.004716b0
add esp, 0x14
jmp 0x472234
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
lea ecx, [edi + 0xbd8]
lea edx, [edi + 0xc08]
mov dword [eax], ecx
lea eax, [edi + 0xbe4]
mov dword [ecx], eax
mov ecx, dword [edi + 0xbf8]
cmp ecx, edx
je 0x47227e
mov eax, dword [ecx + 8]
cmp eax, edx
je 0x472269
nop
mov ecx, eax
mov eax, dword [ecx + 8]
cmp eax, edx
jne 0x472260
mov eax, dword [edi + 0xc00]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xbf8]
mov dword [edi + 0xc00], eax
mov ecx, dword [esp + 0x60]
mov dword [edi + 0xbf8], edx
mov dword [edx], 0
add dword [edi + 0xbd0], 0xfffffff1
mov edx, esi
mov dword [esp + 0x44], edx
cmp esi, ecx
jl 0x471920
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
call fcn.004e389c
mov esp, ebp
pop ebp
ret