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

Disassembly:
sub esp, 0x48
mov eax, dword [0x82384c]
xor eax, esp
mov dword [esp + 0x44], eax
movups xmm0, xmmword [esp + 0x50]
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov esi, dword [esp + 0x6c]
push edi
xor edi, edi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x13], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
movups xmmword [esp + 0x44], xmm0
test esi, esi
je 0x5114fa
cmp dword [esi + 0x11f0], 0xc0dedbad
jne 0x5114fa
mov ecx, fcn.005242f0
nop word [eax + eax]
mov al, byte [ebp + 0xe5]
xor ebx, ebx
mov byte [esp + 0x12], 0
mov byte [ebp + 0xe5], bl
test al, al
je 0x51052c
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
test eax, eax
je 0x51052c
mov ebp, dword [eax]
cmp dword [ebp + 0x24], 2
je 0x510502
mov dword [ebp + 0x24], 2
test ecx, ecx
je 0x510502
push ebp
call fcn.005242f0
mov eax, dword [esp + 0x28]
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x34]
add eax, 0x24
push eax
call fcn.00525d30
push 8
push 0
push 0
push ebp
call fcn.0050e630
mov byte [ebp + 0x10f2], 1
add esp, 0x1c
mov ebp, dword [esp + 0x2c]
mov eax, dword [esi + 8]
test eax, eax
je 0x5106b9
mov ecx, dword [esi + 0x24]
cmp ecx, 2
jle 0x510546
cmp ecx, 0xf
jge 0x510546
mov dword [eax], esi
cmp dword [esi + 8], ebx
je 0x5106b9
mov eax, dword [esi + 0x24]
cmp eax, 2
jl 0x5106b9
cmp eax, 0xf
jge 0x5106b9
cmp eax, 8
setle al
movzx eax, al
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.005204b0
add esp, 0xc
test edx, edx
jg 0x5106b9
jl 0x51058e
test eax, eax
jae 0x5106b9
mov eax, dword [esi + 0x24]
movups xmm0, xmmword [esi + 0xc08]
cmp eax, 3
jne 0x5105cc
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x64]
movups xmmword [eax], xmm0
call fcn.00525af0
push edx
push eax
push str.Resolving_timed_out_after__I64d_milliseconds
push esi
call fcn.0051ee50
add esp, 0x30
jmp 0x51068b
cmp eax, 4
jne 0x510600
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x64]
movups xmmword [eax], xmm0
call fcn.00525af0
push edx
push eax
push str.Connection_timed_out_after__I64d_milliseconds
push esi
call fcn.0051ee50
add esp, 0x30
jmp 0x51068b
mov edx, dword [esi + 0x88]
mov eax, edx
mov ecx, dword [esi + 0x8c]
and eax, ecx
cmp eax, 0xffffffff
je 0x510652
push ecx
push edx
push dword [esi + 0x9c]
push dword [esi + 0x98]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x74]
movups xmmword [eax], xmm0
call fcn.00525af0
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_out_of__I64d_bytes_received
push esi
call fcn.0051ee50
add esp, 0x20
jmp 0x51068b
push dword [esi + 0x9c]
push dword [esi + 0x98]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [eax], xmm0
call fcn.00525af0
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__I64d_milliseconds_with__I64d_bytes_received
push esi
call fcn.0051ee50
add esp, 0x18
cmp dword [esi + 0x24], 8
jle 0x5106a3
push 2
push dword [esi + 8]
call fcn.0051f9c0
add esp, 8
mov byte [esp + 0x12], 1
push 1
mov edi, 0x1c
push edi
push esi
call fcn.0050ffa0
add esp, 0xc
jmp case.0x5106c5.1
mov eax, dword [esi + 0x24]
cmp eax, 0x10
ja case.default.0x5106c5
jmp dword [eax*4 + 0x511514]
push esi
call fcn.00524390
mov edi, eax
add esp, 4
test edi, edi
jne case.0x5106c5.1
cmp dword [esi + 0x24], 2
je 0x5106fe
mov eax, fcn.005242f0
mov dword [esi + 0x24], 2
test eax, eax
je 0x5106fe
push esi
call fcn.005242f0
add esp, 4
push 1
push esi
call fcn.0052c2f0
add esp, 8
or ebx, 0xffffffff
jmp case.0x5106c5.1
push esi
call fcn.0050f030
mov edi, eax
add esp, 4
test edi, edi
jne case.0x5106c5.1
push 2
push esi
call fcn.0052c2f0
mov eax, dword [esi + 0x638]
add esp, 8
test eax, eax
je 0x510747
push 0xa
cdq
push edx
push eax
push esi
call fcn.0050e630
add esp, 0x10
mov eax, dword [esi + 0x63c]
test eax, eax
je 0x51075f
push 2
cdq
push edx
push eax
push esi
call fcn.0050e630
add esp, 0x10
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x26]
push eax
push esi
call fcn.0051a270
mov edi, eax
add esp, 0xc
cmp edi, 0x59
jne 0x5107a1
cmp dword [esi + 0x24], 1
je 0x510786
mov dword [esi + 0x24], 1
lea eax, [esi + 0xc]
push eax
push esi
push dword [ebp + 0x28]
lea eax, [ebp + 0x24]
push eax
call fcn.00525cc0
add esp, 0x10
xor edi, edi
jmp case.0x5106c5.1
cmp byte [esi + 0x10f2], bl
je 0x5107bf
push str.Transfer_was_pending__now_try_another_n
push esi
call fcn.0051ef30
push dword [esi + 0x78]
call fcn.00511840
add esp, 0xc
test edi, edi
jne case.0x5106c5.1
cmp byte [esp + 0x22], bl
je 0x5107e8
cmp dword [esi + 0x24], 3
mov ecx, fcn.005242f0
je 0x5112f2
mov dword [esi + 0x24], 3
jmp 0x5112f2
or ebx, 0xffffffff
cmp byte [esp + 0x13], 0
je 0x51081b
cmp dword [esi + 0x24], 8
je case.0x5106c5.1
mov eax, fcn.00523840
mov dword [esi + 0x24], 8
test eax, eax
je case.0x5106c5.1
push esi
call fcn.00523840
jmp 0x5112ea
push dword [esi + 8]
call fcn.00523870
add esp, 4
test al, al
jne 0x510a12
cmp dword [esi + 0x24], 4
mov ecx, fcn.005242f0
je 0x5112f2
mov dword [esi + 0x24], 4
jmp 0x5112f2
mov edi, dword [esi + 8]
mov dword [esp + 0x14], ebx
cmp byte [edi + 0x510], bl
je 0x510860
mov eax, dword [edi + 0x34c]
jmp 0x510876
cmp byte [edi + 0x518], bl
je 0x510870
mov eax, dword [edi + 0x31c]
jmp 0x510876
mov eax, dword [edi + 0x304]
push dword [edi + 0x364]
mov dword [esp + 0x20], eax
push eax
push edi
call fcn.00526410
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x5108b9
push dword [esp + 0x1c]
mov dword [edi + 0x6fc], eax
push 0x7656a8
mov byte [edi + 0x708], 1
xor edi, edi
push esi
call fcn.0051ef30
add esp, 0xc
cmp dword [esp + 0x14], ebx
jne 0x5108cb
lea eax, [esp + 0x14]
push eax
push dword [esi + 8]
call fcn.00526cc0
add esp, 8
mov edi, eax
push esi
push ebp
call fcn.00511b20
add esp, 8
cmp dword [esp + 0x14], ebx
je 0x5108f4
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.00526990
mov edi, eax
add esp, 8
test edi, edi
je 0x51090b
mov dword [esi + 8], ebx
mov ecx, fcn.005242f0
test edi, edi
je 0x5112f2
mov byte [esp + 0x12], 1
jmp 0x5112f2
or ebx, 0xffffffff
cmp byte [esp + 0x13], 0
jne 0x5107f2
push dword [esi + 8]
call fcn.00523870
add esp, 4
test al, al
je 0x51082e
jmp 0x510a12
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.005290c0
mov edi, eax
add esp, 8
mov eax, dword [esi + 8]
cmp byte [eax + 0x514], bl
je 0x510987
xor edi, edi
or ebx, 0xffffffff
push edi
push edi
push esi
call fcn.0050ffa0
add esp, 0xc
mov ecx, fcn.005242f0
cmp dword [esi + 0x24], 2
je 0x5112f2
mov dword [esi + 0x24], 2
test ecx, ecx
je 0x5112f2
push esi
call fcn.005242f0
jmp 0x5112ea
test edi, edi
jne 0x510a6a
cmp dword [eax + 0x358], 2
jne 0x5109a4
cmp byte [eax + 0x50e], bl
je case.0x5106c5.1
push eax
call fcn.00523820
add esp, 4
test al, al
je case.0x5106c5.1
or ebx, 0xffffffff
mov ecx, fcn.005242f0
cmp dword [esi + 0x24], 6
je 0x5112f2
mov dword [esi + 0x24], 6
jmp 0x5112f2
lea eax, [esp + 0x23]
push eax
push 0
push dword [esi + 8]
call fcn.0051fcf0
add esp, 0xc
mov edi, eax
cmp byte [esp + 0x23], bl
je 0x510a50
test edi, edi
jne 0x510a58
mov eax, dword [esi + 8]
cmp dword [eax + 0x358], 2
jne 0x510a05
cmp byte [eax + 0x50e], bl
je 0x510a12
push eax
call fcn.00523870
add esp, 4
test al, al
je 0x510a2d
cmp dword [esi + 0x24], 5
mov ecx, fcn.005242f0
je 0x5112f2
mov dword [esi + 0x24], 5
jmp 0x5112f2
mov eax, dword [esi + 8]
xor ecx, ecx
or ebx, 0xffffffff
cmp byte [eax + 0x513], cl
sete cl
add ecx, 5
push ecx
push esi
call fcn.0050fdd0
add esp, 8
jmp case.0x5106c5.1
test edi, edi
je case.0x5106c5.1
push esi
call fcn.00524380
push 1
push edi
push esi
call fcn.0050ffa0
add esp, 0x10
mov byte [esp + 0x12], 1
jmp case.0x5106c5.1
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.005118a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x510a58
cmp byte [esp + 0x13], bl
jne 0x510acb
cmp dword [esi + 0x24], 7
mov ecx, fcn.005242f0
je 0x5112f2
mov dword [esi + 0x24], 7
jmp 0x5112f2
lea eax, [esp + 0x13]
push eax
push dword [esi + 8]
call fcn.00511960
mov edi, eax
add esp, 8
test edi, edi
jne 0x510a58
cmp byte [esp + 0x13], bl
je case.0x5106c5.1
cmp dword [esi + 0x24], 8
je 0x510aea
mov eax, fcn.00523840
mov dword [esi + 0x24], 8
test eax, eax
je 0x510aea
push esi
call fcn.00523840
add esp, 4
or ebx, 0xffffffff
jmp case.0x5106c5.1
cmp byte [esi + 0xb49], bl
je 0x510b1e
push 0
push dword [esi + 8]
call fcn.0051f9c0
add esp, 8
cmp dword [esi + 0x24], 0xe
je 0x510b14
mov dword [esi + 0x24], 0xe
xor edi, edi
or ebx, 0xffffffff
jmp case.0x5106c5.1
lea eax, [esp + 0x19]
push eax
push esi
call fcn.0050fef0
mov edi, eax
add esp, 8
test edi, edi
jne 0x510bbe
cmp byte [esp + 0x19], bl
jne 0x510b8a
cmp byte [esi + 0x10eb], bl
je 0x510b76
mov eax, dword [esi + 0x10f8]
cmp eax, 7
je 0x510b54
cmp eax, 5
jne 0x510b76
push 0
push 0
push esi
call fcn.0050ffa0
add esp, 0xc
cmp dword [esi + 0x24], 0xe
je 0x510b6e
mov dword [esi + 0x24], 0xe
or ebx, 0xffffffff
jmp case.0x5106c5.1
cmp dword [esi + 0x24], 9
je 0x510b83
mov dword [esi + 0x24], 9
xor ebx, ebx
jmp case.0x5106c5.1
mov eax, dword [esi + 8]
cmp byte [eax + 0x51e], bl
je 0x510ba9
cmp dword [esi + 0x24], 0xa
je 0x510ba2
mov dword [esi + 0x24], 0xa
xor ebx, ebx
jmp case.0x5106c5.1
cmp dword [esi + 0x24], 0xb
je 0x510bb6
mov dword [esi + 0x24], 0xb
or ebx, 0xffffffff
jmp case.0x5106c5.1
cmp edi, 0x37
jne 0x510c7b
mov eax, dword [esi + 8]
cmp byte [eax + 0x516], bl
je 0x510c7b
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push eax
call fcn.00524a80
add esp, 8
test eax, eax
je 0x510bf3
mov edi, eax
mov byte [esp + 0x12], 1
push esi
call fcn.00524380
push 0
push edi
push esi
call fcn.0050ffa0
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ecx, ecx
je 0x510c6a
test eax, eax
je 0x510c24
cmp eax, 0x37
je 0x510c24
push ecx
mov edi, eax
call dword [0x823878]
jmp 0x5112ea
push 2
push ecx
push esi
call fcn.00524010
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x510c5a
cmp dword [esi + 0x24], 2
je 0x510c55
mov eax, fcn.005242f0
mov dword [esi + 0x24], 2
test eax, eax
je 0x510c55
push esi
call fcn.005242f0
add esp, 4
or ebx, 0xffffffff
xor edi, edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x823878]
jmp 0x5112ea
push ecx
mov byte [esp + 0x16], 1
call dword [0x823878]
jmp 0x5112ea
push esi
call fcn.00524380
add esp, 4
cmp dword [esi + 8], ebx
je 0x510c95
push 0
push edi
push esi
call fcn.0050ffa0
add esp, 0xc
mov byte [esp + 0x12], 1
jmp case.0x5106c5.1
lea eax, [esp + 0x19]
push eax
push dword [esi + 8]
call fcn.005119a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x510ce2
cmp byte [esp + 0x19], bl
je case.0x5106c5.1
mov eax, dword [esi + 8]
xor ecx, ecx
cmp byte [eax + 0x51e], cl
sete cl
add ecx, 0xa
push ecx
push esi
call fcn.0050fdd0
add esp, 8
or ebx, 0xffffffff
jmp case.0x5106c5.1
push esi
call fcn.00524380
push 0
push edi
push esi
call fcn.0050ffa0
add esp, 0x10
mov byte [esp + 0x12], 1
jmp case.0x5106c5.1
lea eax, [esp + 0x3c]
push eax
push dword [esi + 8]
call fcn.0050ff40
mov edi, eax
add esp, 8
test edi, edi
jne 0x510ce2
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x510b83
cmp ecx, 1
sete al
lea eax, [eax*2 + 9]
push eax
push esi
call fcn.0050fdd0
add esp, 8
or ebx, 0xffffffff
jmp case.0x5106c5.1
mov eax, dword [esi + 8]
cmp byte [eax + 0x528], bl
je 0x510d53
push ebp
call fcn.00511840
add esp, 4
mov eax, dword [esi + 8]
cmp dword [eax + 0x584], 0xffffffff
jne 0x510d9e
cmp dword [eax + 0x588], 0xffffffff
jne 0x510d9e
cmp byte [esi + 0x10eb], bl
je 0x510d89
mov eax, dword [eax + 0x560]
test dword [eax + 0x44], 0x1000
jne 0x510d89
mov dword [esi + 0x10f8], 7
cmp dword [esi + 0x24], 0xe
je 0x510dab
mov dword [esi + 0x24], 0xe
or ebx, 0xffffffff
jmp case.0x5106c5.1
cmp dword [esi + 0x24], 0xc
je 0x510dab
mov dword [esi + 0x24], 0xc
or ebx, 0xffffffff
jmp case.0x5106c5.1
push dword [esi + 8]
call fcn.0052c440
add esp, 4
test eax, eax
je 0x510dcc
mov edi, 0x2a
jmp case.0x5106c5.1
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
call fcn.0052d880
mov edi, eax
add esp, 0x14
test edi, edi
jne case.0x5106c5.1
mov edx, dword [esi + 0x66c]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x668]
movlpd qword [esp + 0x24], xmm0
test edx, edx
jl 0x510e4f
jg 0x510e0b
test ecx, ecx
je 0x510e4f
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc38]
push edx
push ecx
push dword [esi + 0xc4c]
movups xmmword [eax], xmm0
push dword [esi + 0xc48]
push dword [esi + 0xb9c]
push dword [esi + 0xb98]
call fcn.0052c030
add esp, 0x38
mov dword [esp + 0x1c], edx
jmp 0x510e5b
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x674]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x670]
mov dword [esp + 0x14], eax
movlpd qword [esp + 0x30], xmm0
test edx, edx
jl 0x510ec0
jg 0x510e7e
test ecx, ecx
je 0x510ec0
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc50]
push edx
push ecx
push dword [esi + 0xc64]
movups xmmword [eax], xmm0
push dword [esi + 0xc60]
push dword [esi + 0xb94]
push dword [esi + 0xb90]
call fcn.0052c030
add esp, 0x38
mov ecx, eax
jmp 0x510ec8
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x1c]
jne 0x510f00
mov eax, ecx
or eax, edx
jne 0x510f00
cmp dword [esi + 0x24], 0xc
je 0x510ee5
mov dword [esi + 0x24], 0xc
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
call fcn.0052c5e0
add esp, 0x14
jmp case.0x5106c5.1
cmp dword [esp + 0x1c], edx
jl 0x510f25
mov eax, dword [esp + 0x14]
jg 0x510f10
cmp eax, ecx
jb 0x510f25
push 0xb
push dword [esp + 0x20]
push eax
push esi
call fcn.0050e630
add esp, 0x10
jmp case.0x5106c5.1
push 0xb
push edx
push ecx
push esi
call fcn.0050e630
add esp, 0x10
jmp case.0x5106c5.1
mov edx, dword [esi + 0x66c]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x668]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1b], bl
mov byte [esp + 0x21], bl
movlpd qword [esp + 0x24], xmm0
test edx, edx
jl 0x510fa6
jg 0x510f62
test ecx, ecx
je 0x510fa6
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc38]
push edx
push ecx
push dword [esi + 0xc4c]
movups xmmword [eax], xmm0
push dword [esi + 0xc48]
push dword [esi + 0xb9c]
push dword [esi + 0xb98]
call fcn.0052c030
add esp, 0x38
mov dword [esp + 0x38], edx
jmp 0x510fb2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x674]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x670]
mov dword [esp + 0x1c], eax
movlpd qword [esp + 0x30], xmm0
test edx, edx
jl 0x51101b
jg 0x510fd5
test ecx, ecx
je 0x51101b
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0xc50]
push edx
push ecx
push dword [esi + 0xc64]
movups xmmword [eax], xmm0
push dword [esi + 0xc60]
push dword [esi + 0xb94]
push dword [esi + 0xb90]
call fcn.0052c030
add esp, 0x38
mov dword [esp + 0x30], eax
mov ecx, eax
jmp 0x511027
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x38]
mov dword [esp + 0x24], edx
jne 0x51120c
mov eax, ecx
or eax, edx
jne 0x51120c
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x1e]
push eax
push esi
push dword [esi + 8]
call fcn.00524750
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x1a], bl
jne 0x5110a1
cmp edi, 0x38
je 0x5110a1
cmp edi, 0x5c
jne 0x5110d3
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x560]
test byte [eax + 0x44], 2
jne 0x51108a
cmp edi, 0x5c
je 0x51108a
push 2
push ecx
call fcn.0051f9c0
add esp, 8
push esi
call fcn.00524380
push 1
push edi
push esi
call fcn.0050ffa0
add esp, 0x10
jmp case.0x5106c5.1
lea eax, [esp + 0x14]
push eax
push dword [esi + 8]
call fcn.00524a80
add esp, 8
test eax, eax
jne 0x5110cd
cmp dword [esp + 0x14], ebx
setne al
mov byte [esp + 0x1b], al
test al, al
je 0x5110d3
xor edi, edi
mov byte [esp + 0x1a], 1
jmp 0x5110e1
test edi, edi
jne 0x51106b
mov edi, eax
test edi, edi
jne 0x51106b
cmp byte [esp + 0x1a], bl
je 0x5111ec
push esi
call fcn.00524380
add esp, 4
cmp dword [esi + 0x12c], ebx
jne 0x51116e
cmp byte [esp + 0x1b], bl
jne 0x511198
cmp dword [esi + 0x128], ebx
je 0x511155
push dword [esp + 0x14]
call dword [0x823878]
mov eax, dword [esi + 0x128]
push 1
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esi + 0x128], ebx
call fcn.00524010
push dword [esp + 0x24]
mov edi, eax
call dword [0x823878]
add esp, 0x14
test edi, edi
je 0x511155
push 1
push edi
push esi
mov byte [esp + 0x1e], 1
call fcn.0050ffa0
mov edi, eax
add esp, 0xc
test edi, edi
jne case.0x5106c5.1
cmp dword [esi + 0x24], 0xe
je 0x510b6e
mov dword [esi + 0x24], 0xe
or ebx, 0xffffffff
jmp case.0x5106c5.1
cmp byte [esp + 0x1b], bl
jne 0x511198
push dword [esp + 0x14]
call dword [0x823878]
mov eax, dword [esi + 0x12c]
add esp, 4
mov dword [esp + 0x14], eax
mov edi, 3
mov dword [esi + 0x12c], ebx
jmp 0x51119d
mov edi, 2
push 0
push 0
push esi
call fcn.0050ffa0
push edi
push dword [esp + 0x24]
push esi
call fcn.00524010
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x5111dd
cmp dword [esi + 0x24], 2
je 0x5111da
mov eax, fcn.005242f0
mov dword [esi + 0x24], 2
test eax, eax
je 0x5111da
push esi
call fcn.005242f0
add esp, 4
or ebx, 0xffffffff
push dword [esp + 0x14]
call dword [0x823878]
jmp 0x5112ea
cmp byte [esp + 0x21], bl
je case.0x5106c5.1
push 8
push 0
push 0
push esi
call fcn.0050e630
add esp, 0x10
xor ebx, ebx
jmp case.0x5106c5.1
movups xmm0, xmmword [esp + 0x44]
sub esp, 0x10
mov eax, esp
push esi
movups xmmword [eax], xmm0
call fcn.0052c5e0
add esp, 0x14
cmp dword [esi + 0x24], 0xd
je 0x51122f
mov dword [esi + 0x24], 0xd
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
cmp edx, ecx
jl 0x51125c
jg 0x511247
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x1c], eax
jb 0x511260
push 0xb
push edx
push dword [esp + 0x24]
push esi
call fcn.0050e630
add esp, 0x10
jmp case.0x5106c5.1
mov eax, dword [esp + 0x30]
push 0xb
push ecx
push eax
push esi
call fcn.0050e630
add esp, 0x10
jmp case.0x5106c5.1
mov eax, dword [esi + 8]
or ebx, 0xffffffff
test eax, eax
je 0x5112a2
cmp byte [eax + 0x528], 0
je 0x51128b
push ebp
call fcn.00511840
add esp, 4
push 0
push edi
push esi
call fcn.0050ffa0
test edi, edi
push esi
cmove edi, eax
call fcn.0050e600
add esp, 0x10
cmp byte [esi + 0x10eb], 0
je 0x5112c8
cmp dword [esi + 0x10f8], 7
je 0x5112c8
cmp dword [esi + 0x24], 0
mov ecx, fcn.005242f0
je 0x5112f2
mov dword [esi + 0x24], 0
jmp 0x5112f2
cmp dword [esi + 0x24], 0xf
je case.0x5106c5.1
mov eax, dword [esi + 0x78]
mov dword [esi + 0x24], 0xf
dec dword [eax + 0x10]
mov eax, fcn.0050e590
test eax, eax
je case.0x5106c5.1
push esi
call fcn.0050e590
add esp, 4
mov ecx, fcn.005242f0
cmp dword [esi + 0x24], 0xf
jge 0x511444
test edi, edi
je 0x5113d0
lea eax, [ebp + 0x24]
mov ebp, dword [eax]
mov dword [esp + 0x24], eax
test ebp, ebp
je 0x511351
mov ebx, dword [ebp]
cmp dword [ebx + 0x24], 2
je 0x511332
mov dword [ebx + 0x24], 2
test ecx, ecx
je 0x511332
push ebx
call fcn.005242f0
mov eax, dword [esp + 0x28]
add esp, 4
push 0
push ebp
push eax
call fcn.00525d30
push 8
push 0
push 0
push ebx
call fcn.0050e630
add esp, 0x1c
mov byte [ebx + 0x10f2], 1
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x511399
cmp byte [esp + 0x12], 0
je 0x5113a8
push 0
lea eax, [esi + 0x18]
cmp edi, 0x1c
push eax
lea eax, [ebx + 0x5c0]
sete byte [esp + 0x48]
push eax
call fcn.00525d30
push 1
push ebx
push esi
mov dword [esi + 8], 0
call fcn.00517890
push dword [esp + 0x58]
push ebx
push esi
call fcn.0051a370
add esp, 0x24
jmp 0x5113a8
cmp dword [esi + 0x24], 2
jne 0x5113a8
push esi
call fcn.00524380
add esp, 4
cmp dword [esi + 0x24], 0xf
je 0x51143d
mov eax, dword [esi + 0x78]
mov dword [esi + 0x24], 0xf
dec dword [eax + 0x10]
mov eax, fcn.0050e590
test eax, eax
je 0x51143d
push esi
call fcn.0050e590
jmp 0x51143a
mov eax, dword [esi + 8]
test eax, eax
je 0x511440
push eax
call fcn.0052c440
add esp, 4
test eax, eax
je 0x511440
push 2
push dword [esi + 8]
mov edi, 0x2a
call fcn.0051f9c0
mov ecx, dword [esi + 0x24]
xor eax, eax
add esp, 8
cmp ecx, 0xe
setge al
add eax, 0xe
cmp ecx, eax
je 0x51143d
mov dword [esi + 0x24], eax
cmp ecx, 0xe
jl 0x511416
mov eax, dword [esi + 0x78]
dec dword [eax + 0x10]
xor eax, eax
cmp ecx, 0xe
setge al
cmp dword [eax*4 + 0x765548], 0
je 0x51143d
xor eax, eax
cmp ecx, 0xe
push esi
setge al
mov eax, dword [eax*4 + 0x765548]
call eax
add esp, 4
or ebx, 0xffffffff
cmp dword [esi + 0x24], 0xf
jne 0x51148d
mov eax, dword [esi + 0xb10]
test eax, eax
je 0x511459
push edi
push esi
call eax
add esp, 8
jmp 0x511480
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0x2c]
push eax
push eax
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
lea eax, [ecx + 0x14]
push dword [ecx + 0x18]
push eax
call fcn.00525cc0
add esp, 0x10
xor ebx, ebx
cmp dword [esi + 0x24], 0x10
je 0x51148d
mov dword [esi + 0x24], 0x10
mov ebp, dword [esp + 0x2c]
mov ecx, fcn.005242f0
cmp ebx, 0xffffffff
je 0x5104c0
mov cl, byte [ebp + 0xe5]
test cl, cl
mov ecx, fcn.005242f0
jne 0x5104c0
mov dword [esi + 0x28], edi
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004fb522
add esp, 0x48
ret
mov dword [esi + 0x28], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004fb522
add esp, 0x48
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.004fb522
add esp, 0x48
ret
mov ecx, dword [esp + 0x54]
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb522
add esp, 0x48
ret