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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
xor edi, edi
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0
mov dword [esp + 0x18], edi
test esi, esi
je 0x514a73
cmp dword [esi], 0xc0dedbad
jne 0x514a73
mov ecx, dword [esp + 0x74]
cmp byte [ecx + 0x108], 0
je 0x5138f0
mov edi, 0x2a
push esi
mov dword [esp + 0x1c], edi
call fcn.004511b0
push 0
push edi
push esi
call fcn.00513330
add esp, 0x10
cmp dword [esi + 0x34], 0xf
je 0x5138e2
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x34], 0xf
dec dword [eax + 0x10]
mov ebx, dword [esi + 0x18]
test ebx, ebx
je 0x5138d2
push esi
push ebx
call fcn.00522c50
push 0
lea eax, [esi + 0x28]
push eax
lea eax, [ebx + 0x254]
push eax
call fcn.0052bfa0
add esp, 0x14
push esi
mov dword [esi + 0x18], 0
call fcn.00512510
add esp, 4
mov ecx, dword [esp + 0x74]
nop word [eax + eax]
mov al, byte [ecx + 0x106]
xor ebp, ebp
mov byte [esp + 0x10], 0
mov byte [ecx + 0x106], 0
test al, al
je 0x513911
push ecx
call fcn.00515260
add esp, 4
mov ecx, dword [esi + 0x34]
lea eax, [ecx - 3]
cmp eax, 0xb
ja 0x51392a
cmp dword [esi + 0x18], ebp
je case.default.0x51396e
lea ebx, [esi + 0x18]
jmp 0x513932
cmp dword [esi + 0x18], ebp
lea ebx, [esi + 0x18]
je 0x513962
lea eax, [ecx - 2]
cmp eax, 0xc
ja 0x513962
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x84]
push esi
call fcn.005136e0
mov edi, dword [esp + 0x2c]
add esp, 0x14
test al, al
jne 0x5148a6
mov ecx, dword [esi + 0x34]
cmp ecx, 0x10
ja case.default.0x51396e
jmp dword [ecx*4 + 0x514a80]
push esi
call fcn.00529330
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne case.0x51396e.1
cmp dword [esi + 0x34], 2
je 0x5139a2
push esi
mov dword [esi + 0x34], 2
call fcn.00529280
add esp, 4
push 1
lea eax, [esp + 0x44]
push esi
push eax
call fcn.005345d0
mov edx, dword [esp + 0x84]
add esp, 0xc
or ebp, 0xffffffff
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
jmp 0x51486a
cmp dword [esi + 0x8bc], ebp
jne 0x5139f8
mov eax, dword [esi + 0x4a8]
inc eax
push eax
call dword [section..data]
add esp, 4
mov dword [esi + 0x8bc], eax
test eax, eax
jne 0x5139f8
mov edi, 0x1b
mov dword [esp + 0x18], edi
jmp case.0x51396e.1
push 2
lea eax, [esp + 0x54]
push esi
push eax
call fcn.005345d0
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x78]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x513a2a
push 0xa
push 0
push eax
push esi
call fcn.00512300
add esp, 0x10
mov eax, dword [esi + 0x1ec]
test eax, eax
je 0x513a42
push 2
push 0
push eax
push esi
call fcn.00512300
add esp, 0x10
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x1b]
push eax
push esi
call fcn.0051e1a0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
cmp edi, 0x59
jne 0x513ac9
cmp dword [esi + 0x34], 1
je 0x513a6d
mov dword [esi + 0x34], 1
mov edi, dword [esp + 0x74]
lea eax, [esi + 0x1c]
push eax
push esi
push dword [edi + 0x28]
lea eax, [edi + 0x24]
push eax
call fcn.0052bf20
mov ecx, dword [esi + 0x14]
add esp, 0x10
mov eax, dword [esi + 0x10]
test ecx, ecx
je 0x513a94
mov dword [ecx + 0x10], eax
jmp 0x513a97
mov dword [edi + 4], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
test ecx, ecx
je 0x513ab5
mov dword [ecx + 0x14], eax
xor edi, edi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esp + 0x18], edi
jmp case.0x51396e.1
mov dword [edi + 8], eax
xor edi, edi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esp + 0x18], edi
jmp case.0x51396e.1
cmp byte [esi + 0xd60], 0
je 0x513ae8
push str.Transfer_was_pending__now_try_another
push esi
call fcn.005235b0
push dword [esi + 0x7c]
call fcn.00515260
add esp, 0xc
test edi, edi
jne case.0x51396e.1
cmp byte [esp + 0x17], 0
mov eax, dword [esi + 0x34]
je 0x513b0f
cmp eax, 3
je case.0x51396e.1
mov dword [esi + 0x34], 3
jmp case.0x51396e.1
or ebp, 0xffffffff
cmp byte [esp + 0x13], 0
je 0x513b2e
cmp eax, 6
je case.0x51396e.1
mov dword [esi + 0x34], 6
jmp case.0x51396e.1
cmp eax, 4
je case.0x51396e.1
mov dword [esi + 0x34], 4
jmp case.0x51396e.1
mov edi, dword [ebx]
mov dword [esp + 0x1c], ebp
cmp byte [edi + 0x1e0], 0
je 0x513b5a
mov ebp, dword [edi + 0xb4]
jmp 0x513b6e
cmp byte [edi + 0x1e9], 0
je 0x513b6b
mov ebp, dword [edi + 0x84]
jmp 0x513b6e
mov ebp, dword [edi + 0x6c]
push dword [edi + 0x458]
push ebp
push esi
call fcn.0052c740
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x513ba8
push ebp
mov dword [edi + 0x48], eax
mov byte [edi + 0x5c], 1
xor edi, edi
push 0x652cdc
push esi
mov dword [esp + 0x24], edi
call fcn.005235b0
add esp, 0xc
cmp dword [esp + 0x1c], edi
jne 0x513bbc
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0052d340
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
push esi
push dword [esp + 0x78]
call fcn.005154c0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x5149ee
cmp dword [esp + 0x1c], eax
je 0x513bf3
lea eax, [esp + 0x13]
push eax
push esi
call fcn.0052cd80
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x513c05
mov dword [ebx], ebp
test edi, edi
je case.0x51396e.1
mov byte [esp + 0x10], 1
jmp case.0x51396e.1
mov eax, dword [esi + 0x34]
jmp 0x513b0f
lea eax, [esp + 0x11]
push eax
push esi
call fcn.0052e9c0
mov edi, eax
add esp, 8
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp byte [eax + 0x1e4], 0
je 0x513c5c
xor edi, edi
or ebp, 0xffffffff
push edi
push edi
push esi
mov dword [esp + 0x24], edi
call fcn.00513330
add esp, 0xc
cmp dword [esi + 0x34], 2
je case.0x51396e.1
push esi
mov dword [esi + 0x34], 2
call fcn.00529280
jmp 0x514863
test edi, edi
jne 0x513bfb
or ebp, 0xffffffff
cmp dword [esi + 0x34], 6
jmp 0x513b1c
lea eax, [esp + 0x13]
push eax
push 0
push 0
push esi
call fcn.00522ad0
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
je 0x513c9b
test edi, edi
jne 0x513ca3
or ebp, 0xffffffff
cmp dword [esi + 0x34], 6
jmp 0x513b1c
test edi, edi
je case.0x51396e.1
push esi
call fcn.004511b0
push 1
push edi
push esi
call fcn.00513330
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x51396e.1
cmp byte [esi + 0xd67], 0
mov ecx, 6
je 0x513cdf
push esi
call fcn.005152f0
mov ecx, dword [esi + 0x34]
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x513ca3
cmp byte [eax + 0x1e7], 0
je 0x513d06
cmp ecx, 8
je 0x513cfe
mov dword [esi + 0x34], 8
or ebp, 0xffffffff
jmp case.0x51396e.1
test edi, edi
jne 0x513ca3
push edi
push eax
mov byte [esp + 0x19], 0
call fcn.00523000
add esp, 8
test al, al
mov eax, dword [esp + 0x1c]
je 0x513d4d
cmp byte [eax + 0x1ee], 0
je 0x513d56
mov eax, dword [eax + 0x200]
movzx ecx, byte [esp + 0x11]
mov dword [esp + 0x18], edi
cmp dword [eax + 0x18], edi
mov eax, 1
cmove ecx, eax
mov eax, dword [esi + 0x34]
mov byte [esp + 0x11], cl
jmp 0x513d99
cmp byte [eax + 0x1ee], 0
jne 0x513d86
mov eax, dword [eax + 0x200]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x513d76
lea ecx, [esp + 0x11]
push ecx
push esi
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x513d86
jmp 0x513d7b
mov byte [esp + 0x11], 1
mov eax, dword [esp + 0x1c]
mov byte [eax + 0x1ee], 1
mov eax, dword [esi + 0x34]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x513ca3
mov cl, byte [esp + 0x11]
test cl, cl
jne 0x513db1
cmp eax, 7
je 0x513da9
mov dword [esi + 0x34], 7
or ebp, 0xffffffff
jmp case.0x51396e.1
cmp eax, 8
jmp 0x513cf5
mov ecx, dword [ebx]
test ecx, ecx
je 0x513dfa
mov eax, dword [ecx + 0x200]
cmp dword [eax + 0x18], ebp
je 0x513dfa
mov byte [esp + 0x11], 0
mov eax, dword [ecx + 0x200]
lea ecx, [esp + 0x11]
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 + 0x18], edi
test edi, edi
jne 0x513ca3
mov al, byte [esp + 0x11]
jmp 0x513e0b
mov al, 1
xor edi, edi
mov byte [esp + 0x11], al
mov ecx, 7
mov dword [esp + 0x18], edi
test al, al
je case.0x51396e.1
jmp 0x513cf2
mov edx, 8
cmp dword [esi + 0x1c4], ebp
je 0x513ec6
mov eax, dword [esi + 0x80]
test eax, eax
jne 0x513e3a
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x513e41
mov byte [eax + 0x107], 1
push dword [esi + 0xe24]
lea eax, [esi + 0xdf4]
push dword [esi + 0xdec]
push eax
lea eax, [esi + 0xdbc]
push eax
push dword [esi + 0x1c8]
mov eax, dword [esi + 0x1c4]
call eax
mov ecx, dword [esi + 0x80]
add esp, 0x14
mov edx, eax
test ecx, ecx
je 0x513e81
mov byte [ecx + 0x107], 0
jmp 0x513e8f
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x513e8f
mov byte [eax + 0x107], 0
test edx, edx
je 0x513ec3
push str.operation_aborted_by_pre_request_callback
push esi
call fcn.005234e0
mov edi, 0x2a
push esi
mov dword [esp + 0x24], edi
call fcn.004511b0
push 0
push edi
push esi
call fcn.00513330
add esp, 0x18
mov byte [esp + 0x10], 1
jmp case.0x51396e.1
mov edx, dword [esi + 0x34]
cmp byte [esi + 0x6ad], 1
mov ecx, dword [ebx]
jne 0x513ef7
push 0
push ecx
call fcn.00524d40
add esp, 8
cmp dword [esi + 0x34], 0xe
je 0x513ee9
mov dword [esi + 0x34], 0xe
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x18], edi
jmp case.0x51396e.1
mov eax, dword [ecx + 0x200]
xor edi, edi
mov eax, dword [eax + 8]
test eax, eax
je 0x513f18
lea ecx, [esp + 0x12]
push ecx
push esi
call eax
mov ecx, dword [ebx]
add esp, 8
mov edx, dword [esi + 0x34]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x514003
cmp byte [esp + 0x12], 0
jne 0x513fb3
cmp byte [esi + 0xd5a], 0
je 0x513f9b
mov eax, dword [esi + 0xd70]
mov al, byte [eax + 0x20]
cmp al, 7
je 0x513f49
cmp al, 5
jne 0x513f9b
push 0
push 0
push esi
call fcn.00513330
mov ecx, dword [ebx]
add esp, 0xc
mov eax, ecx
neg eax
sbb eax, eax
add eax, 0xf
cmp dword [esi + 0x34], eax
je 0x513cfe
mov dword [esi + 0x34], eax
test ecx, ecx
jne 0x513f77
mov eax, dword [esi + 0x7c]
dec dword [eax + 0x10]
xor eax, eax
test ecx, ecx
sete al
mov eax, dword [eax*4 + 0x652ad0]
test eax, eax
je 0x513cfe
push esi
call eax
add esp, 4
or ebp, 0xffffffff
jmp case.0x51396e.1
cmp edx, 9
je 0x513cfe
mov dword [esi + 0x34], 9
or ebp, 0xffffffff
jmp case.0x51396e.1
cmp byte [ecx + 0x1ed], 0
je 0x513fd4
cmp edx, 0xa
je 0x513cfe
mov dword [esi + 0x34], 0xa
or ebp, 0xffffffff
jmp case.0x51396e.1
cmp edx, 0xb
je 0x513cfe
push 6
lea eax, [esp + 0x64]
mov dword [esi + 0x34], 0xb
push esi
push eax
mov byte [esi + 0x143], 0
call fcn.005345d0
add esp, 0xc
or ebp, 0xffffffff
jmp case.0x51396e.1
cmp edi, 0x37
jne 0x5140c1
cmp byte [ecx + 0x1e7], 0
je 0x5140c1
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push esi
call fcn.00529ab0
add esp, 8
test eax, eax
je 0x51403a
mov edi, eax
mov byte [esp + 0x10], 1
mov dword [esp + 0x18], edi
push esi
call fcn.004511b0
push 0
push edi
push esi
call fcn.00513330
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x5140b0
test eax, eax
je 0x51406f
cmp eax, 0x37
je 0x51406f
mov edi, eax
push ecx
mov dword [esp + 0x1c], edi
call dword [0x6d9004]
jmp 0x514863
push 2
push ecx
push esi
call fcn.00528d60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x51409c
cmp dword [esi + 0x34], 2
je 0x514097
push esi
mov dword [esi + 0x34], 2
call fcn.00529280
add esp, 4
or ebp, 0xffffffff
xor edi, edi
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], edi
call dword [0x6d9004]
jmp 0x514863
push ecx
mov byte [esp + 0x14], 1
call dword [0x6d9004]
jmp 0x514863
push esi
call fcn.004511b0
add esp, 4
cmp dword [ebx], ebp
je 0x513cb5
push 0
push edi
push esi
call fcn.00513330
add esp, 0xc
mov byte [esp + 0x10], 1
jmp case.0x51396e.1
mov ecx, dword [ebx]
test ecx, ecx
je 0x51413d
mov eax, dword [ecx + 0x200]
cmp dword [eax + 0x1c], ebp
je 0x51413d
mov byte [esp + 0x12], 0
mov eax, dword [ecx + 0x200]
lea ecx, [esp + 0x12]
push ecx
push esi
mov eax, dword [eax + 0x1c]
call eax
mov edx, dword [esi + 0x34]
mov edi, eax
mov ecx, dword [ebx]
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x51414d
push esi
call fcn.004511b0
push 0
push edi
push esi
call fcn.00513330
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x51396e.1
xor edi, edi
mov byte [esp + 0x12], 1
mov edx, 9
mov dword [esp + 0x18], edi
cmp byte [esp + 0x12], 0
je case.0x51396e.1
mov cl, byte [ecx + 0x1ed]
xor eax, eax
test cl, cl
sete al
add eax, 0xa
cmp edx, eax
je 0x513cfe
mov dword [esi + 0x34], eax
xor eax, eax
test cl, cl
sete al
mov eax, dword [eax*4 + 0x652ac0]
test eax, eax
je 0x513cfe
push esi
call eax
add esp, 4
or ebp, 0xffffffff
jmp case.0x51396e.1
mov eax, dword [ebx]
xor ecx, ecx
mov dword [esp + 0x38], ecx
xor edi, edi
mov eax, dword [eax + 0x200]
lea edx, [edi + 0xa]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x5141c5
lea ecx, [esp + 0x38]
push ecx
push esi
call eax
mov edx, dword [esi + 0x34]
add esp, 8
mov ecx, dword [esp + 0x38]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x514121
test ecx, ecx
je case.0x51396e.1
xor eax, eax
cmp ecx, 1
sete al
lea eax, [eax*2 + 9]
cmp edx, eax
je 0x513cfe
mov dword [esi + 0x34], eax
mov eax, dword [eax*4 + 0x652a98]
test eax, eax
je 0x513cfe
push esi
call eax
add esp, 4
or ebp, 0xffffffff
jmp case.0x51396e.1
mov eax, dword [ebx]
mov edx, 0xb
cmp byte [eax + 0x1f7], 0
je 0x514233
push dword [esp + 0x74]
call fcn.00515260
mov edx, dword [esi + 0x34]
add esp, 4
mov eax, dword [ebx]
mov ecx, edx
cmp dword [eax + 0x218], 0xffffffff
jne 0x514282
cmp dword [eax + 0x21c], 0xffffffff
jne 0x514282
cmp byte [esi + 0xd5a], 0
je 0x51426a
mov eax, dword [eax + 0x200]
test dword [eax + 0x4c], 0x1000
jne 0x51426a
mov eax, dword [esi + 0xd70]
mov byte [eax + 0x20], 7
mov ecx, dword [esi + 0x34]
cmp ecx, 0xe
je 0x513cfe
mov dword [esi + 0x34], 0xe
or ebp, 0xffffffff
jmp case.0x51396e.1
cmp edx, 0xc
je 0x513cfe
mov dword [esi + 0x34], 0xc
or ebp, 0xffffffff
jmp case.0x51396e.1
push esi
call fcn.00534890
add esp, 4
test eax, eax
je 0x5142b8
mov eax, 0x2a
mov edi, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], edi
jmp 0x5142de
mov ecx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.00535be0
add esp, 0x14
mov dword [esp + 0x30], eax
mov edi, eax
mov dword [esp + 0x18], edi
test eax, eax
je 0x514316
mov edx, dword [ebx]
mov ecx, dword [edx + 0x200]
test byte [ecx + 0x4c], 2
jne 0x5142fc
cmp eax, 0x5c
je 0x5142fc
push 2
push edx
call fcn.00524d40
add esp, 8
push esi
call fcn.004511b0
push 1
push dword [esp + 0x38]
push esi
call fcn.00513330
add esp, 0x10
jmp case.0x51396e.1
mov eax, dword [esi + 0x218]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x21c]
or eax, ecx
movlpd qword [esp + 0x30], xmm0
je 0x51437b
mov edx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x218]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7b8]
push ecx
push edx
push dword [esi + 0x7cc]
movups xmmword [eax], xmm0
push dword [esi + 0x7c8]
push dword [esi + 0x71c]
push dword [esi + 0x718]
call fcn.00534210
add esp, 0x38
mov dword [esp + 0x20], edx
jmp 0x514387
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x224]
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x220]
or eax, ecx
movlpd qword [esp + 0x28], xmm0
je 0x5143ee
mov edx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x220]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7d0]
push ecx
push edx
push dword [esi + 0x7e4]
movups xmmword [eax], xmm0
push dword [esi + 0x7e0]
push dword [esi + 0x714]
push dword [esi + 0x710]
call fcn.00534210
add esp, 0x38
mov ecx, eax
jmp 0x5143f6
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
jne 0x514430
mov eax, ecx
or eax, edx
jne 0x514430
cmp dword [esi + 0x34], 0xc
je 0x514413
mov dword [esi + 0x34], 0xc
mov ecx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.00534be0
add esp, 0x14
jmp case.0x51396e.1
cmp dword [esp + 0x20], edx
jl 0x514455
mov eax, dword [esp + 0x1c]
jg 0x514440
cmp eax, ecx
jb 0x514455
push 0xb
push dword [esp + 0x24]
push eax
push esi
call fcn.00512300
add esp, 0x10
jmp case.0x51396e.1
push 0xb
push edx
push ecx
push esi
call fcn.00512300
add esp, 0x10
jmp case.0x51396e.1
mov eax, dword [esi + 0x218]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x21c]
or eax, ecx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
movlpd qword [esp + 0x30], xmm0
je 0x5144da
mov edx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x218]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7b8]
push ecx
push edx
push dword [esi + 0x7cc]
movups xmmword [eax], xmm0
push dword [esi + 0x7c8]
push dword [esi + 0x71c]
push dword [esi + 0x718]
call fcn.00534210
add esp, 0x38
mov dword [esp + 0x24], edx
jmp 0x5144e6
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x224]
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x220]
or eax, ecx
movlpd qword [esp + 0x28], xmm0
je 0x514551
mov edx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [edx]
mov edx, dword [esi + 0x220]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7d0]
push ecx
push edx
push dword [esi + 0x7e4]
movups xmmword [eax], xmm0
push dword [esi + 0x7e0]
push dword [esi + 0x714]
push dword [esi + 0x710]
call fcn.00534210
add esp, 0x38
mov dword [esp + 0x28], eax
mov ecx, eax
jmp 0x51455d
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x24]
mov dword [esp + 0x30], edx
jne 0x514755
mov eax, ecx
or eax, edx
jne 0x514755
lea eax, [esp + 0x16]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push dword [ebx]
call fcn.005296d0
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x14], 0
mov dword [esp + 0x18], edi
jne 0x5145de
cmp edi, 0x38
je 0x5145de
cmp edi, 0x5c
jne 0x51466a
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x200]
test byte [eax + 0x4c], 2
jne 0x5145c7
cmp edi, 0x5c
je 0x5145c7
push 2
push ecx
call fcn.00524d40
add esp, 8
push esi
call fcn.004511b0
push 1
push edi
push esi
call fcn.00513330
add esp, 0x10
jmp case.0x51396e.1
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00529ab0
add esp, 8
test eax, eax
jne 0x51465c
cmp dword [esp + 0x1c], ebp
setne al
mov byte [esp + 0x15], al
test al, al
je 0x51466a
push esi
mov byte [esp + 0x18], 1
call fcn.004511b0
add esp, 4
mov edi, 2
push 0
push 0
push esi
call fcn.00513330
push edi
push dword [esp + 0x2c]
push esi
call fcn.00528d60
mov edi, eax
add esp, 0x18
mov dword [esp + 0x18], edi
test edi, edi
jne 0x51464d
cmp dword [esi + 0x34], 2
je 0x51464a
push esi
mov dword [esi + 0x34], 2
call fcn.00529280
add esp, 4
or ebp, 0xffffffff
push dword [esp + 0x1c]
call dword [0x6d9004]
jmp 0x514863
test edi, edi
jne 0x5145a9
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x5145a9
cmp byte [esp + 0x14], 0
je 0x514736
push esi
call fcn.004511b0
add esp, 4
cmp byte [esp + 0x15], 0
jne 0x51460d
cmp dword [esi + 0x110], ebp
jne 0x51470f
cmp dword [esi + 0x10c], ebp
je 0x5146f6
push dword [esp + 0x1c]
call dword [0x6d9004]
mov eax, dword [esi + 0x10c]
push 1
push eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esi + 0x10c], ebp
call fcn.00528d60
push dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x2c], edi
call dword [0x6d9004]
add esp, 0x14
test edi, edi
je 0x5146f6
push 1
push edi
push esi
mov byte [esp + 0x1c], 1
call fcn.00513330
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
test edi, edi
jne case.0x51396e.1
cmp dword [esi + 0x34], 0xe
je 0x513cfe
mov dword [esi + 0x34], 0xe
or ebp, 0xffffffff
jmp case.0x51396e.1
push dword [esp + 0x1c]
call dword [0x6d9004]
mov eax, dword [esi + 0x110]
add esp, 4
mov dword [esp + 0x1c], eax
mov edi, 3
mov dword [esi + 0x110], ebp
jmp 0x514612
cmp byte [esp + 0x16], 0
je case.0x51396e.1
push 8
push 0
push 0
push esi
call fcn.00512300
add esp, 0x10
jmp case.0x51396e.1
mov ecx, dword [esp + 0x78]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.00534be0
add esp, 0x14
cmp dword [esi + 0x34], 0xd
je 0x51477a
mov dword [esi + 0x34], 0xd
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x30]
jl 0x5147a4
mov eax, dword [esp + 0x20]
jg 0x5147ae
mov edx, dword [esp + 0x28]
cmp eax, edx
jb 0x5147a8
push 0xb
push ecx
push eax
push esi
call fcn.00512300
add esp, 0x10
jmp case.0x51396e.1
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov eax, edx
push 0xb
push ecx
push eax
push esi
call fcn.00512300
add esp, 0x10
jmp case.0x51396e.1
mov eax, dword [ebx]
or ebp, 0xffffffff
test eax, eax
je 0x5147f3
cmp byte [eax + 0x1f7], 0
je 0x5147de
push dword [esp + 0x74]
call fcn.00515260
add esp, 4
push 0
push edi
push esi
call fcn.00513330
add esp, 0xc
test edi, edi
cmove edi, eax
mov dword [esp + 0x18], edi
cmp byte [esi + 0xd5a], 0
je 0x51481b
mov eax, dword [esi + 0xd70]
cmp byte [eax + 0x20], 7
je 0x51481b
cmp dword [esi + 0x34], 0
mov edx, dword [esp + 0x78]
je 0x51486a
mov dword [esi + 0x34], 0
jmp 0x51486a
cmp dword [esi + 0x34], 0xf
je case.0x51396e.1
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x34], 0xf
dec dword [eax + 0x10]
mov eax, dword [ebx]
mov dword [esp + 0x30], eax
test eax, eax
je 0x514857
push esi
push eax
call fcn.00522c50
push 0
lea eax, [esi + 0x28]
push eax
mov eax, dword [esp + 0x40]
add eax, 0x254
push eax
call fcn.0052bfa0
add esp, 0x14
push esi
mov dword [ebx], 0
call fcn.00512510
add esp, 4
mov edx, dword [esp + 0x78]
cmp dword [ebx], 0
je 0x5148a6
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x74]
sub eax, 2
cmp eax, 5
ja 0x5148aa
cmp ebp, 0xffffffff
je 0x5148aa
cmp byte [ecx + 0x106], 0
jne 0x5148aa
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push edx
push esi
call fcn.005136e0
mov edi, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esp + 0x74]
cmp dword [esi + 0x34], 0xf
jge 0x5149cf
test edi, edi
je 0x514968
push ecx
call fcn.00515260
mov ebp, dword [ebx]
add esp, 4
test ebp, ebp
je 0x514912
cmp byte [esp + 0x10], 0
je 0x514921
cmp edi, 0x1c
push esi
push ebp
sete byte [esp + 0x44]
call fcn.00522c50
push 0
lea eax, [esi + 0x28]
push eax
lea eax, [ebp + 0x254]
push eax
call fcn.0052bfa0
push 1
push ebp
push esi
mov dword [ebx], 0
call fcn.0051aca0
push dword [esp + 0x5c]
push ebp
push esi
call fcn.0051e2f0
add esp, 0x2c
jmp 0x514921
cmp dword [esi + 0x34], 2
jne 0x514921
push esi
call fcn.004511b0
add esp, 4
cmp dword [esi + 0x34], 0xf
je 0x5149c8
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x34], 0xf
dec dword [eax + 0x10]
mov ebp, dword [ebx]
test ebp, ebp
je 0x51495a
push esi
push ebp
call fcn.00522c50
push 0
lea eax, [esi + 0x28]
push eax
lea eax, [ebp + 0x254]
push eax
call fcn.0052bfa0
add esp, 0x14
push esi
mov dword [ebx], 0
call fcn.00512510
jmp 0x5149c5
cmp dword [ebx], 0
je 0x5149cb
push esi
call fcn.00534890
add esp, 4
test eax, eax
je 0x5149cb
push 2
push dword [ebx]
mov edi, 0x2a
mov dword [esp + 0x20], edi
call fcn.00524d40
mov ecx, dword [esi + 0x34]
xor eax, eax
add esp, 8
cmp ecx, 0xe
setge al
add eax, 0xe
cmp ecx, eax
je 0x5149c8
mov dword [esi + 0x34], eax
cmp ecx, 0xe
jl 0x5149af
mov eax, dword [esi + 0x7c]
dec dword [eax + 0x10]
xor eax, eax
cmp ecx, 0xe
setge al
mov eax, dword [eax*4 + 0x652ad0]
test eax, eax
je 0x5149c8
push esi
call eax
add esp, 4
or ebp, 0xffffffff
cmp dword [esi + 0x34], 0xf
je 0x5149f8
mov ecx, dword [esp + 0x74]
cmp ebp, 0xffffffff
je 0x5138f0
cmp byte [ecx + 0x106], 0
jne 0x5138f0
mov dword [esi + 0x38], edi
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esi + 0x688]
test eax, eax
je 0x514a0f
push edi
push esi
call eax
mov ebx, dword [esp + 0x7c]
add esp, 8
jmp 0x514a34
mov ebx, dword [esp + 0x74]
lea eax, [esi + 0x3c]
push eax
push eax
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
lea eax, [ebx + 0x14]
push dword [ebx + 0x18]
push eax
call fcn.0052bf20
add esp, 0x10
cmp dword [esi + 0x34], 0x10
je 0x514a41
mov dword [esi + 0x34], 0x10
lea eax, [esi + 0x1c]
push eax
push esi
push dword [ebx + 0x38]
lea eax, [ebx + 0x34]
push eax
call fcn.0052bf20
push esi
push ebx
call fcn.005158c0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x60
ret