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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x46f440]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa4]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0xb4]
push edi
xor edi, edi
mov dword [esp + 0x20], eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x1d], 0
mov dword [esp + 0x14], edi
test esi, esi
je 0x408478
cmp dword [esi], 0xc0dedbad
jne 0x408478
cmp byte [ebp + 0x148], 0
je 0x407290
mov edi, 0x2a
push 0
push edi
push esi
mov dword [esp + 0x20], edi
call fcn.00406c30
add esp, 0xc
cmp dword [esi + 0x34], 0x10
je 0x407290
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x34], 0x10
dec dword [eax + 0x10]
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x10], 0
jne 0x407258
push eax
call fcn.00408b90
add esp, 4
mov ebx, dword [esi + 0x18]
test ebx, ebx
je 0x40727b
push esi
push ebx
call fcn.00417530
push 0
lea eax, [esi + 0x28]
push eax
lea eax, [ebx + 0x304]
push eax
call fcn.00423c30
add esp, 0x14
push esi
mov dword [esi + 0x18], 0
call fcn.00405600
add esp, 4
nop dword [eax + eax]
mov al, byte [ebp + 0x146]
xor ebx, ebx
mov byte [esp + 0x12], 0
mov byte [ebp + 0x146], bl
test al, al
je 0x4072b9
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4072b9
push dword [eax]
push ebp
call fcn.00406bc0
add esp, 8
mov ecx, dword [esi + 0x34]
lea eax, [ecx - 4]
cmp eax, 0xb
ja 0x4072cd
cmp dword [esi + 0x18], ebx
je case.default.0x407306
lea eax, [ecx - 3]
cmp eax, 0xc
ja 0x4072fa
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x1a]
push eax
push dword [esp + 0x2c]
push esi
call fcn.00407050
mov edi, dword [esp + 0x28]
add esp, 0x14
test al, al
jne 0x40829c
mov ecx, dword [esi + 0x34]
cmp ecx, 0x11
ja case.default.0x407306
jmp dword [ecx*4 + 0x408498]
push esi
call fcn.00421340
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
jne case.0x407306.1
cmp dword [esi + 0x34], 2
je 0x407331
mov dword [esi + 0x34], 2
push 1
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.0042be80
add esp, 0xc
push 2
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.0042be80
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x20]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x407373
push 0xa
push 0
push eax
push esi
call fcn.004053f0
add esp, 0x10
mov eax, dword [esi + 0x1dc]
test eax, eax
je 0x40738b
push 2
push 0
push eax
push esi
call fcn.004053f0
add esp, 0x10
cmp dword [esi + 0x34], 3
je case.0x407306.3
push esi
mov dword [esi + 0x34], 3
call fcn.00421290
add esp, 4
lea eax, [esp + 0x1e]
push eax
lea eax, [esp + 0x37]
push eax
push esi
call fcn.00413700
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
cmp edi, 0x59
jne 0x407421
cmp dword [esi + 0x34], 1
je 0x4073cc
mov dword [esi + 0x34], 1
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00423a70
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov eax, dword [esi + 0x10]
test ecx, ecx
je 0x4073ec
mov dword [ecx + 0x10], eax
jmp 0x4073ef
mov dword [ebp + 4], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
test ecx, ecx
je 0x40740d
mov dword [ecx + 0x14], eax
xor edi, edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14], edi
jmp case.0x407306.1
mov dword [ebp + 8], eax
xor edi, edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14], edi
jmp case.0x407306.1
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x407436
push dword [ecx]
push eax
call fcn.00406bc0
add esp, 8
test edi, edi
jne case.0x407306.1
push 3
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.0042be80
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x20]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x34]
cmp byte [esp + 0x33], bl
je 0x407476
cmp eax, 4
je case.0x407306.1
mov dword [esi + 0x34], 4
jmp case.0x407306.1
or ebx, 0xffffffff
cmp byte [esp + 0x1e], 0
je 0x407495
cmp eax, 7
je case.0x407306.1
mov dword [esi + 0x34], 7
jmp case.0x407306.1
cmp eax, 5
je case.0x407306.1
mov dword [esi + 0x34], 5
jmp case.0x407306.1
mov eax, dword [esi + 0x18]
mov dword [esp + 0x18], ebx
cmp byte [eax + 0x288], bl
je 0x4074be
mov ebx, dword [eax + 0x78]
jmp 0x4074ce
cmp byte [eax + 0x291], bl
je 0x4074cb
mov ebx, dword [eax + 0x48]
jmp 0x4074ce
mov ebx, dword [eax + 0x30]
push dword [eax + 0xec]
push ebx
push esi
call fcn.00424520
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x407510
push ebx
push 0x45d688
xor edi, edi
mov dword [esi + 0x910], eax
push esi
mov byte [esi + 0x924], 1
mov dword [esp + 0x20], edi
call fcn.00417f00
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x407524
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00425150
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
lea eax, [esp + 0x88]
push eax
push esi
call fcn.00417c80
add esp, 8
cmp dword [esi + 0x18], 0
je case.0x407552.0
mov ecx, dword [esi + 0x34]
cmp ecx, 0x11
ja case.default.0x407552
movzx eax, byte [ecx + 0x4084fc]
jmp dword [eax*4 + 0x4084e0]
push 0x425190
lea eax, [esp + 0x8c]
push eax
push esi
call fcn.00417b40
jmp 0x4075f2
mov ecx, 0x406100
jmp 0x407592
mov ecx, 0x408c70
jmp 0x407592
mov ecx, 0x406ae0
jmp 0x407592
mov ecx, 0x406b20
jmp 0x407592
mov ecx, 0x408be0
push ecx
lea eax, [esp + 0x8c]
mov ebx, esi
push eax
push ebx
call fcn.00417b40
lea eax, [esp + 0x94]
push eax
push ebx
call fcn.00416eb0
add esp, 0x14
cmp dword [esp + 0x9c], 0
jne case.0x407552.0
test byte [esi + 0xd8], 0x30
jne case.0x407552.0
push 0
push esi
call fcn.004178a0
add esp, 8
test al, al
je case.0x407552.0
push str.WARNING:_no_socket_in_pollset__transfer_may_stall_
push esi
call fcn.00417f00
add esp, 8
jmp case.0x407552.0
push ecx
push str.multi_getsock:_unexpected_multi_state__d
push esi
call fcn.00417e30
add esp, 0xc
lea eax, [esi + 0x54]
push eax
lea eax, [esp + 0x8c]
push eax
push esi
push ebp
call fcn.00405900
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x408413
movups xmm0, xmmword [esp + 0x88]
movups xmmword [esi + 0x54], xmm0
movups xmm0, xmmword [esp + 0x98]
movups xmmword [esi + 0x64], xmm0
cmp dword [esp + 0x18], eax
je 0x407677
lea eax, [esp + 0x1e]
push eax
push esi
call fcn.00424bd0
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x407650
mov dword [esi + 0x18], ebx
jmp 0x407677
mov eax, dword [esi + 0x34]
or ebx, 0xffffffff
cmp byte [esp + 0x1e], 0
je 0x40766b
cmp eax, 7
je 0x407677
mov dword [esi + 0x34], 7
jmp 0x407677
cmp eax, 5
je 0x407677
mov dword [esi + 0x34], 5
test edi, edi
je case.0x407306.1
mov byte [esp + 0x12], 1
jmp case.0x407306.1
lea eax, [esp + 0x13]
push eax
push esi
call fcn.00426850
mov edi, eax
add esp, 8
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], edi
cmp byte [eax + 0x28c], bl
je 0x4076d8
xor edi, edi
or ebx, 0xffffffff
push edi
push edi
push esi
mov dword [esp + 0x20], edi
call fcn.00406c30
add esp, 0xc
cmp dword [esi + 0x34], 3
je case.0x407306.1
push esi
mov dword [esi + 0x34], 3
call fcn.00421290
jmp 0x408263
test edi, edi
jne 0x40767f
or ebx, 0xffffffff
cmp dword [esi + 0x34], 7
je case.0x407306.1
mov dword [esi + 0x34], 7
jmp case.0x407306.1
lea eax, [esp + 0x1e]
push eax
push 0
push 0
push esi
call fcn.004173a0
add esp, 0x10
mov edi, eax
mov dword [esp + 0x14], edi
cmp byte [esp + 0x1e], bl
je 0x407730
test edi, edi
jne 0x407738
or ebx, 0xffffffff
cmp dword [esi + 0x34], 7
je case.0x407306.1
mov dword [esi + 0x34], 7
jmp case.0x407306.1
test edi, edi
je case.0x407306.1
push 1
push edi
push esi
call fcn.00406c30
add esp, 0xc
mov byte [esp + 0x12], 1
jmp case.0x407306.1
test edi, edi
jne 0x407738
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x28f], bl
je 0x40776c
mov dword [esi + 0x34], 9
or ebx, 0xffffffff
jmp case.0x407306.1
test edi, edi
jne 0x407738
mov ecx, dword [esi + 0x18]
push edi
push ecx
mov dword [esp + 0x30], ecx
lea eax, [ecx + 0x296]
mov byte [esp + 0x1b], bl
mov dword [esp + 0x20], eax
call fcn.00417880
add esp, 8
test al, al
mov eax, dword [esp + 0x18]
je 0x4077b3
cmp byte [eax], bl
je 0x4077bb
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x2ac]
cmp dword [eax + 0x18], ebx
jne 0x4077af
mov byte [esp + 0x13], 1
xor edi, edi
jmp 0x4077eb
mov dword [esp + 0x18], eax
cmp byte [eax], bl
jne 0x4077eb
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x2ac]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4077df
lea ecx, [esp + 0x13]
push ecx
push esi
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x4077eb
jmp 0x4077e4
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
mov byte [eax], 1
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x14], edi
test edi, edi
jne 0x407738
cmp byte [esp + 0x13], bl
jne 0x407865
cmp ecx, 8
je 0x40780c
mov dword [esi + 0x34], 8
or ebx, 0xffffffff
jmp case.0x407306.1
mov edx, dword [esi + 0x18]
test edx, edx
je 0x407850
mov eax, dword [edx + 0x2ac]
cmp dword [eax + 0x18], ebx
je 0x407850
mov byte [esp + 0x13], bl
lea ecx, [esp + 0x13]
mov eax, dword [edx + 0x2ac]
push ecx
push esi
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esi + 0x34]
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x40785b
jmp 0x407738
xor edi, edi
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], edi
cmp byte [esp + 0x13], bl
je case.0x407306.1
cmp ecx, 9
je 0x407871
mov dword [esi + 0x34], 9
or ebx, 0xffffffff
jmp case.0x407306.1
cmp dword [esi + 0x1b4], ebx
je 0x4078f8
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40788f
mov byte [eax + 0x147], 1
push dword [esi + 0xdb4]
lea eax, [esi + 0xd82]
push dword [esi + 0xdb0]
push eax
lea eax, [esi + 0xd54]
push eax
push dword [esi + 0x1b8]
mov eax, dword [esi + 0x1b4]
call eax
mov ecx, dword [esi + 0x7c]
add esp, 0x14
test ecx, ecx
je 0x4078c7
mov byte [ecx + 0x147], bl
test eax, eax
je 0x4078f5
push str.operation_aborted_by_pre_request_callback
push esi
call fcn.00417e30
mov edi, 0x2a
push 0
push edi
push esi
mov dword [esp + 0x28], edi
call fcn.00406c30
add esp, 0x14
mov byte [esp + 0x12], 1
jmp case.0x407306.1
mov ecx, dword [esi + 0x34]
cmp byte [esi + 0x679], 1
mov eax, dword [esi + 0x18]
jne 0x40792a
push 0
push eax
call fcn.0041a500
add esp, 8
cmp dword [esi + 0x34], 0xf
je 0x40791c
mov dword [esi + 0x34], 0xf
xor edi, edi
or ebx, 0xffffffff
mov dword [esp + 0x14], edi
jmp case.0x407306.1
mov eax, dword [eax + 0x2ac]
xor edi, edi
mov eax, dword [eax + 8]
test eax, eax
je 0x407949
lea ecx, [esp + 0x1d]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x34]
add esp, 8
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x407a31
cmp byte [esp + 0x1d], bl
jne 0x4079e8
cmp byte [esi + 0xcf6], bl
je 0x4079d4
mov eax, dword [esi + 0xd08]
mov al, byte [eax + 0x20]
cmp al, 7
je 0x407978
cmp al, 5
jne 0x4079d4
push 0
push 0
push esi
call fcn.00406c30
mov ebx, dword [esi + 0x18]
add esp, 0xc
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x10
cmp dword [esi + 0x34], eax
je 0x4079cc
mov dword [esi + 0x34], eax
test ebx, ebx
jne 0x4079b4
mov eax, dword [esi + 0x7c]
dec dword [eax + 0x10]
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x10], ebx
jne 0x4079b4
push eax
call fcn.00408b90
add esp, 4
xor eax, eax
test ebx, ebx
sete al
mov eax, dword [eax*4 + 0x45d4d4]
test eax, eax
je 0x4079cc
push esi
call eax
add esp, 4
or ebx, 0xffffffff
jmp case.0x407306.1
cmp ecx, 0xa
je 0x4079e0
mov dword [esi + 0x34], 0xa
or ebx, 0xffffffff
jmp case.0x407306.1
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x295], bl
je 0x407a07
cmp ecx, 0xb
je 0x4079ff
mov dword [esi + 0x34], 0xb
or ebx, 0xffffffff
jmp case.0x407306.1
cmp ecx, 0xc
je 0x407a29
push 7
lea eax, [esp + 0x7c]
mov dword [esi + 0x34], 0xc
push esi
push eax
mov byte [esi + 0x134], bl
call fcn.0042be80
add esp, 0xc
or ebx, 0xffffffff
jmp case.0x407306.1
cmp edi, 0x37
jne 0x407ae2
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x28f], bl
je 0x407ae2
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push esi
call fcn.00421a40
add esp, 8
test eax, eax
je 0x407a6a
mov edi, eax
mov byte [esp + 0x12], 1
mov dword [esp + 0x14], edi
push 0
push edi
push esi
call fcn.00406c30
mov ecx, dword [esp + 0x24]
add esp, 0xc
test ecx, ecx
je 0x407ad1
test eax, eax
je 0x407a99
cmp eax, 0x37
je 0x407a99
mov edi, eax
push ecx
mov dword [esp + 0x18], edi
call dword [0x46f004]
jmp 0x408263
push 2
push ecx
push esi
call fcn.00420d80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x407abd
cmp dword [esi + 0x34], 2
je 0x407ab8
mov dword [esi + 0x34], 2
or ebx, 0xffffffff
xor edi, edi
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x18], edi
call dword [0x46f004]
jmp 0x408263
push ecx
mov byte [esp + 0x16], 1
call dword [0x46f004]
jmp 0x408263
cmp dword [esi + 0x18], ebx
je 0x407744
push 0
push edi
push esi
call fcn.00406c30
add esp, 0xc
mov byte [esp + 0x12], 1
jmp case.0x407306.1
mov edx, dword [esi + 0x18]
test edx, edx
je 0x407b4e
mov eax, dword [edx + 0x2ac]
cmp dword [eax + 0x1c], ebx
je 0x407b4e
mov byte [esp + 0x1d], bl
lea ecx, [esp + 0x1d]
mov eax, dword [edx + 0x2ac]
push ecx
push esi
mov eax, dword [eax + 0x1c]
call eax
mov ecx, dword [esi + 0x34]
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
je 0x407b59
push 0
push edi
push esi
call fcn.00406c30
add esp, 0xc
mov byte [esp + 0x12], 1
jmp case.0x407306.1
xor edi, edi
mov byte [esp + 0x1d], 1
mov dword [esp + 0x14], edi
cmp byte [esp + 0x1d], bl
je case.0x407306.1
mov eax, dword [esi + 0x18]
mov dl, byte [eax + 0x295]
xor eax, eax
test dl, dl
sete al
add eax, 0xb
cmp ecx, eax
je 0x4079cc
mov dword [esi + 0x34], eax
xor eax, eax
test dl, dl
sete al
mov eax, dword [eax*4 + 0x45d4c4]
jmp 0x4079c2
mov eax, dword [esi + 0x18]
xor edx, edx
mov dword [esp + 0x40], edx
xor edi, edi
mov eax, dword [eax + 0x2ac]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x407bc0
lea ecx, [esp + 0x40]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x34]
add esp, 8
mov edx, dword [esp + 0x40]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
jne 0x407aeb
test edx, edx
je case.0x407306.1
xor eax, eax
cmp edx, 1
sete al
lea eax, [eax*2 + 0xa]
cmp ecx, eax
je 0x4079cc
mov dword [esi + 0x34], eax
mov eax, dword [eax*4 + 0x45d498]
jmp 0x4079c2
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x29e], bl
je 0x407c1a
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x407c1a
push dword [eax]
push ebp
call fcn.00406bc0
mov ecx, dword [esi + 0x34]
add esp, 8
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x2c8], 0xffffffff
jne 0x407c65
cmp dword [eax + 0x2cc], 0xffffffff
jne 0x407c65
cmp byte [esi + 0xcf6], bl
je 0x407c50
mov eax, dword [eax + 0x2ac]
test dword [eax + 0x50], 0x1000
jne 0x407c50
mov eax, dword [esi + 0xd08]
mov byte [eax + 0x20], 7
cmp dword [esi + 0x34], 0xf
je 0x407c71
mov dword [esi + 0x34], 0xf
or ebx, 0xffffffff
jmp case.0x407306.1
cmp ecx, 0xd
je 0x407c71
mov dword [esi + 0x34], 0xd
or ebx, 0xffffffff
jmp case.0x407306.1
push esi
call fcn.0042c1b0
add esp, 4
test eax, eax
je 0x407c97
mov ecx, 0x2a
mov edi, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edi
jmp 0x407cbf
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.0042d7b0
mov edi, eax
add esp, 0x14
mov dword [esp + 0x14], edi
mov ecx, edi
mov dword [esp + 0x28], ecx
test edi, edi
je 0x407cf2
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x2ac]
test byte [eax + 0x50], 2
jne 0x407cde
cmp ecx, 0x5c
je 0x407cde
push 2
push edx
call fcn.0041a500
add esp, 8
push 1
push dword [esp + 0x2c]
push esi
call fcn.00406c30
add esp, 0xc
jmp case.0x407306.1
mov eax, dword [esi + 0x208]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x20c]
or eax, ecx
movlpd qword [esp + 0x28], xmm0
je 0x407d57
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x208]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x788]
push ecx
push edx
push dword [esi + 0x79c]
movups xmmword [eax], xmm0
push dword [esi + 0x798]
push dword [esi + 0x6e4]
push dword [esi + 0x6e0]
call fcn.0042bac0
add esp, 0x38
mov dword [esp + 0x24], edx
jmp 0x407d63
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x214]
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x210]
or eax, ecx
movlpd qword [esp + 0x34], xmm0
je 0x407dca
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x210]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7a0]
push ecx
push edx
push dword [esi + 0x7b4]
movups xmmword [eax], xmm0
push dword [esi + 0x7b0]
push dword [esi + 0x6dc]
push dword [esi + 0x6d8]
call fcn.0042bac0
add esp, 0x38
mov ecx, eax
jmp 0x407dd2
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x24]
jne 0x407e0c
mov eax, ecx
or eax, edx
jne 0x407e0c
cmp dword [esi + 0x34], 0xd
je 0x407def
mov dword [esi + 0x34], 0xd
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.0042c370
add esp, 0x14
jmp case.0x407306.1
cmp dword [esp + 0x24], edx
jl 0x407e31
mov eax, dword [esp + 0x18]
jg 0x407e1c
cmp eax, ecx
jb 0x407e31
push 0xb
push dword [esp + 0x28]
push eax
push esi
call fcn.004053f0
add esp, 0x10
jmp case.0x407306.1
push 0xb
push edx
push ecx
push esi
call fcn.004053f0
add esp, 0x10
jmp case.0x407306.1
mov ecx, dword [esi + 0x20c]
xor al, al
mov byte [esp + 0x1f], al
xorps xmm0, xmm0
mov eax, dword [esi + 0x208]
or eax, ecx
mov dword [esp + 0x18], ebx
movlpd qword [esp + 0x28], xmm0
je 0x407eb2
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x208]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x788]
push ecx
push edx
push dword [esi + 0x79c]
movups xmmword [eax], xmm0
push dword [esi + 0x798]
push dword [esi + 0x6e4]
push dword [esi + 0x6e0]
call fcn.0042bac0
add esp, 0x38
mov dword [esp + 0x3c], edx
jmp 0x407ebe
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x214]
xorps xmm0, xmm0
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x210]
or eax, ecx
movlpd qword [esp + 0x34], xmm0
je 0x407f29
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x210]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7a0]
push ecx
push edx
push dword [esi + 0x7b4]
movups xmmword [eax], xmm0
push dword [esi + 0x7b0]
push dword [esi + 0x6dc]
push dword [esi + 0x6d8]
call fcn.0042bac0
add esp, 0x38
mov dword [esp + 0x34], eax
mov ecx, eax
jmp 0x407f35
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x3c]
mov dword [esp + 0x28], edx
jne 0x40813e
mov eax, ecx
or eax, edx
jne 0x40813e
push esi
call fcn.00421700
add esp, 4
mov edi, eax
mov dword [esp + 0x14], edi
cmp byte [esi + 0x12a], bl
jne 0x407fba
cmp edi, 0x38
je 0x407fba
mov ecx, edi
cmp edi, 0x5c
je 0x407f80
mov al, byte [esp + 0x1f]
mov byte [esp + 0x1f], al
test ecx, ecx
je 0x407ffc
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 0x2ac]
test byte [eax + 0x50], 2
jne 0x407f9f
cmp edi, 0x5c
je 0x407f9f
push 2
push ecx
call fcn.0041a500
add esp, 8
push 1
push edi
push esi
call fcn.00406c30
add esp, 0xc
push dword [esp + 0x18]
call dword [0x46f004]
jmp 0x408263
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00421a40
add esp, 8
mov ecx, edi
test eax, eax
jne 0x407fdb
cmp dword [esp + 0x18], ebx
setne al
mov byte [esp + 0x1f], al
jmp 0x407feb
test edi, edi
jne 0x407fe7
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x407f80
mov al, byte [esp + 0x1f]
test al, al
je 0x407f78
xor edi, edi
mov byte [esi + 0x12a], 1
mov dword [esp + 0x14], edi
cmp byte [esi + 0x12a], bl
je 0x40810b
push esi
call fcn.00419750
add esp, 4
test al, al
jne 0x40810b
cmp byte [esp + 0x1f], bl
jne 0x4080c5
cmp dword [esi + 0x11c], ebx
jne 0x4080a1
cmp dword [esi + 0x118], ebx
je 0x40807a
push dword [esp + 0x18]
call dword [0x46f004]
mov eax, dword [esi + 0x118]
push 1
push eax
push esi
mov dword [esp + 0x28], eax
mov dword [esi + 0x118], ebx
call fcn.00420d80
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
je 0x408082
push 1
push edi
push esi
mov byte [esp + 0x1e], 1
call fcn.00406c30
mov edi, eax
add esp, 0xc
mov dword [esp + 0x14], edi
test edi, edi
jne 0x40812f
cmp dword [esi + 0x34], 0xf
je 0x40808f
mov dword [esi + 0x34], 0xf
push dword [esp + 0x18]
or ebx, 0xffffffff
call dword [0x46f004]
jmp 0x408263
push dword [esp + 0x18]
call dword [0x46f004]
mov eax, dword [esi + 0x11c]
add esp, 4
mov dword [esp + 0x18], eax
mov edi, 3
mov dword [esi + 0x11c], ebx
jmp 0x4080ca
mov edi, 2
push 0
push 0
push esi
call fcn.00406c30
push edi
push dword [esp + 0x28]
push esi
call fcn.00420d80
mov edi, eax
add esp, 0x18
mov dword [esp + 0x14], edi
test edi, edi
jne 0x40812f
cmp dword [esi + 0x34], 2
je 0x4080f9
mov dword [esi + 0x34], 2
push dword [esp + 0x18]
or ebx, 0xffffffff
call dword [0x46f004]
jmp 0x408263
cmp byte [esi + 0xcef], bl
je 0x40812f
push esi
call fcn.00421b70
add esp, 4
test al, al
jne 0x40812f
push 8
push 0
push 0
push esi
call fcn.004053f0
add esp, 0x10
push dword [esp + 0x18]
call dword [0x46f004]
jmp 0x408263
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.0042c370
add esp, 0x14
cmp dword [esi + 0x34], 0xe
je 0x408163
mov dword [esi + 0x34], 0xe
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x28]
jl 0x40818d
mov eax, dword [esp + 0x24]
jg 0x408197
mov edx, dword [esp + 0x34]
cmp eax, edx
jb 0x408191
push 0xb
push ecx
push eax
push esi
call fcn.004053f0
add esp, 0x10
jmp case.0x407306.1
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov eax, edx
push 0xb
push ecx
push eax
push esi
call fcn.004053f0
add esp, 0x10
jmp case.0x407306.1
mov eax, dword [esi + 0x18]
or ebx, 0xffffffff
test eax, eax
je 0x4081e3
cmp byte [eax + 0x29e], 0
je 0x4081ce
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4081ce
push dword [eax]
push ebp
call fcn.00406bc0
add esp, 8
push 0
push edi
push esi
call fcn.00406c30
add esp, 0xc
test edi, edi
cmove edi, eax
mov dword [esp + 0x14], edi
cmp byte [esi + 0xcf6], 0
je 0x408207
mov eax, dword [esi + 0xd08]
cmp byte [eax + 0x20], 7
je 0x408207
cmp dword [esi + 0x34], 0
je case.0x407306.1
mov dword [esi + 0x34], 0
jmp case.0x407306.1
cmp dword [esi + 0x34], 0x10
je case.0x407306.1
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x34], 0x10
dec dword [eax + 0x10]
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x10], 0
jne 0x40822c
push eax
call fcn.00408b90
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
je 0x408256
push esi
push eax
call fcn.00417530
push 0
lea eax, [esi + 0x28]
push eax
mov eax, dword [esp + 0x38]
add eax, 0x304
push eax
call fcn.00423c30
add esp, 0x14
push esi
mov dword [esi + 0x18], 0
call fcn.00405600
add esp, 4
mov eax, dword [esi + 0x34]
sub eax, 3
cmp eax, 5
ja 0x40829c
cmp ebx, 0xffffffff
je 0x40829c
cmp byte [ebp + 0x146], 0
jne 0x40829c
push 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x1a]
push eax
push dword [esp + 0x2c]
push esi
call fcn.00407050
mov edi, dword [esp + 0x28]
add esp, 0x14
mov eax, dword [esi + 0x34]
cmp eax, 0x10
jge 0x4083f4
test edi, edi
je 0x40837d
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x4082c5
push dword [ecx]
push ebp
call fcn.00406bc0
mov eax, dword [esi + 0x34]
add esp, 8
mov ebx, dword [esi + 0x18]
test ebx, ebx
je 0x408314
cmp byte [esp + 0x12], 0
je 0x408322
cmp edi, 0x1c
push esi
push ebx
sete byte [esp + 0x4c]
call fcn.00417530
push 0
lea eax, [esi + 0x28]
push eax
lea eax, [ebx + 0x304]
push eax
call fcn.00423c30
push 1
push ebx
push esi
mov dword [esi + 0x18], 0
call fcn.0040f360
push dword [esp + 0x64]
push ebx
push esi
call fcn.00413820
add esp, 0x2c
jmp 0x408322
cmp eax, 3
jne 0x408322
push esi
call fcn.0042c340
add esp, 4
cmp dword [esi + 0x34], 0x10
je 0x4083f1
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x34], 0x10
dec dword [eax + 0x10]
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x10], 0
jne 0x40834b
push eax
call fcn.00408b90
add esp, 4
mov ebx, dword [esi + 0x18]
test ebx, ebx
je 0x40836e
push esi
push ebx
call fcn.00417530
push 0
lea eax, [esi + 0x28]
push eax
lea eax, [ebx + 0x304]
push eax
call fcn.00423c30
add esp, 0x14
push esi
mov dword [esi + 0x18], 0
call fcn.00405600
jmp 0x4083ee
cmp dword [esi + 0x18], 0
je 0x4083f4
push esi
call fcn.0042c1b0
add esp, 4
test eax, eax
je 0x4083f4
push 2
push dword [esi + 0x18]
mov edi, 0x2a
mov dword [esp + 0x1c], edi
call fcn.0041a500
mov ebx, dword [esi + 0x34]
xor eax, eax
add esp, 8
cmp ebx, 0xf
setge al
add eax, 0xf
cmp ebx, eax
je 0x4083f1
mov dword [esi + 0x34], eax
cmp ebx, 0xf
jl 0x4083d8
mov eax, dword [esi + 0x7c]
dec dword [eax + 0x10]
mov eax, dword [esi + 0x7c]
cmp dword [eax + 0x10], 0
jne 0x4083d8
push eax
call fcn.00408b90
add esp, 4
xor eax, eax
cmp ebx, 0xf
setge al
mov eax, dword [eax*4 + 0x45d4d4]
test eax, eax
je 0x4083f1
push esi
call eax
add esp, 4
or ebx, 0xffffffff
cmp dword [esi + 0x34], 0x10
je 0x408417
cmp ebx, 0xffffffff
je 0x407290
cmp byte [ebp + 0x146], 0
jne 0x407290
mov dword [esi + 0x38], edi
mov eax, ebx
jmp 0x40847d
mov eax, dword [esi + 0x654]
test eax, eax
je 0x40842a
push edi
push esi
call eax
add esp, 8
jmp 0x408448
lea eax, [esi + 0x3c]
mov dword [eax + 0xc], 1
push eax
push eax
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
lea eax, [ebp + 0x14]
push eax
call fcn.00423a70
add esp, 0xc
cmp dword [esi + 0x34], 0x11
je 0x408455
mov dword [esi + 0x34], 0x11
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp + 0x34]
push esi
push eax
call fcn.00423a70
push esi
push ebp
call fcn.00408d80
add esp, 0x14
xor eax, eax
jmp 0x40847d
mov eax, 4
jmp 0x40847d
mov eax, 2
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045ac79
add esp, 0x9c
ret