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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
push edi
xor edi, edi
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
test esi, esi
je 0x50cc7e
cmp dword [esi], 0xc0dedbad
jne 0x50cc7e
mov ecx, dword [esp + 0x70]
cmp byte [ecx + 0xe4], 0
je 0x50b930
mov edi, 0x2a
push esi
mov dword [esp + 0x1c], edi
call fcn.0040eab0
push 0
push edi
push esi
call fcn.0050b260
add esp, 0x10
cmp dword [esi + 0x28], 0xf
je 0x50b928
mov eax, dword [esi + 0x70]
mov dword [esi + 0x28], 0xf
dec dword [eax + 0x10]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x50b918
push esi
call fcn.00537610
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebx + 0x2fc]
push eax
call fcn.00532b40
push ebx
push esi
call fcn.004fe4e0
add esp, 0x18
push esi
mov dword [esi + 0xc], 0
call fcn.0050a440
add esp, 4
mov ecx, dword [esp + 0x70]
nop dword [eax]
mov al, byte [ecx + 0xe1]
xor ebp, ebp
mov byte [esp + 0x10], 0
mov byte [ecx + 0xe1], 0
test al, al
je 0x50b995
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x30], eax
test eax, eax
je 0x50b995
mov ebx, dword [eax]
cmp dword [ebx + 0x28], 2
je 0x50b973
push ebx
mov dword [ebx + 0x28], 2
call fcn.00533c50
mov eax, dword [esp + 0x34]
add esp, 4
mov ecx, dword [esp + 0x70]
push 0
push eax
lea eax, [ecx + 0x24]
push eax
call fcn.00532b40
push 8
push 0
push 0
push ebx
call fcn.0050a230
add esp, 0x1c
mov byte [ebx + 0xd09], 1
mov ecx, dword [esi + 0x28]
lea ebx, [esi + 0xc]
lea eax, [ecx - 3]
cmp eax, 0xb
ja 0x50b9b4
cmp dword [ebx], ebp
jne 0x50b9b8
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [ebx], ebp
je 0x50b9e8
lea eax, [ecx - 2]
cmp eax, 0xc
ja 0x50b9e8
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x80]
push esi
call fcn.0050b720
mov edi, dword [esp + 0x2c]
add esp, 0x14
test al, al
jne 0x50ca7d
mov ecx, dword [esi + 0x28]
cmp ecx, 0x10
ja case.default.0x50b9f0
jmp dword [ecx*4 + 0x50cc8c]
push esi
call fcn.00533cf0
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
jne case.0x50b9f0.1
cmp dword [esi + 0x28], 2
je 0x50ba24
push esi
mov dword [esi + 0x28], 2
call fcn.00533c50
add esp, 4
push 1
lea eax, [esp + 0x40]
push esi
push eax
call fcn.005165f0
add esp, 0xc
or ebp, 0xffffffff
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x74]
movups xmmword [eax], xmm0
jmp case.0x50b9f0.1
cmp dword [esi + 0x8dc], ebp
jne 0x50ba77
mov eax, dword [esi + 0x4c8]
inc eax
push eax
call dword [0x5f0994]
add esp, 4
mov dword [esi + 0x8dc], eax
test eax, eax
jne 0x50ba77
mov edi, 0x1b
mov dword [esp + 0x18], edi
jmp case.0x50b9f0.1
push 2
lea eax, [esp + 0x50]
push esi
push eax
call fcn.005165f0
add esp, 0xc
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x74]
movups xmmword [eax], xmm0
mov eax, dword [esi + 0x1ec]
test eax, eax
je 0x50baa9
push 0xa
cdq
push edx
push eax
push esi
call fcn.0050a230
add esp, 0x10
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x50bac1
push 2
cdq
push edx
push eax
push esi
call fcn.0050a230
add esp, 0x10
lea eax, [esp + 0x11]
push eax
lea eax, [esp + 0x1a]
push eax
push esi
call fcn.00503d10
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
cmp edi, 0x59
jne 0x50bb0f
cmp dword [esi + 0x28], 1
je 0x50baec
mov dword [esi + 0x28], 1
lea eax, [esi + 0x10]
push eax
mov eax, dword [esp + 0x74]
push esi
push dword [eax + 0x28]
add eax, 0x24
push eax
call fcn.00532ac0
add esp, 0x10
xor edi, edi
mov dword [esp + 0x18], edi
jmp case.0x50b9f0.1
cmp byte [esi + 0xd09], 0
je 0x50bb78
push str.Transfer_was_pending__now_try_another
push esi
call fcn.0050f370
mov eax, dword [esi + 0x70]
add esp, 8
add eax, 0x24
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x30], eax
test eax, eax
je 0x50bb78
mov ebx, dword [eax]
cmp dword [ebx + 0x28], 2
je 0x50bb56
push ebx
mov dword [ebx + 0x28], 2
call fcn.00533c50
mov eax, dword [esp + 0x34]
add esp, 4
push 0
push eax
push dword [esp + 0x2c]
call fcn.00532b40
push 8
push 0
push 0
push ebx
call fcn.0050a230
add esp, 0x1c
mov byte [ebx + 0xd09], 1
test edi, edi
jne case.0x50b9f0.1
cmp byte [esp + 0x16], 0
je 0x50bb9d
cmp dword [esi + 0x28], 3
je case.0x50b9f0.1
mov dword [esi + 0x28], 3
jmp case.0x50b9f0.1
or ebp, 0xffffffff
cmp byte [esp + 0x11], 0
je 0x50bbc3
cmp dword [esi + 0x28], 8
je case.0x50b9f0.1
push esi
mov dword [esi + 0x28], 8
call fcn.00537690
jmp 0x50ca28
push dword [esi + 0xc]
call fcn.005376e0
add esp, 4
test al, al
jne 0x50bdd4
cmp dword [esi + 0x28], 4
je case.0x50b9f0.1
mov dword [esi + 0x28], 4
jmp case.0x50b9f0.1
mov eax, dword [ebx]
mov dword [esp + 0x1c], ebp
cmp byte [eax + 0x260], 0
je 0x50bc03
mov ebx, dword [eax + 0xac]
jmp 0x50bc14
cmp byte [eax + 0x269], 0
je 0x50bc11
mov ebx, dword [eax + 0x7c]
jmp 0x50bc14
mov ebx, dword [eax + 0x64]
push dword [eax + 0xc4]
push ebx
push esi
call fcn.00518b00
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50bc54
push ebx
push 0x5b41a0
xor edi, edi
mov dword [esi + 0x9a4], eax
push esi
mov byte [esi + 0x9b8], 1
mov dword [esp + 0x24], edi
call fcn.0050f370
add esp, 0xc
cmp dword [esp + 0x1c], edi
jne 0x50bc68
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00519670
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x70]
push esi
push eax
call fcn.0050d480
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x50cc67
cmp dword [esp + 0x1c], eax
je 0x50bca1
lea eax, [esp + 0x11]
push eax
push esi
call fcn.005191b0
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x50bcb3
mov dword [esi + 0xc], ebp
test edi, edi
je case.0x50b9f0.1
mov byte [esp + 0x10], 1
jmp case.0x50b9f0.1
or ebp, 0xffffffff
cmp byte [esp + 0x11], 0
jne 0x50bba7
push dword [esi + 0xc]
call fcn.005376e0
mov ecx, dword [esi + 0x28]
add esp, 4
test al, al
je 0x50bcdb
cmp ecx, 5
jmp 0x50bdd8
cmp ecx, 4
je case.0x50b9f0.1
mov dword [esi + 0x28], 4
jmp case.0x50b9f0.1
lea eax, [esp + 0x11]
push eax
push esi
call fcn.00529610
mov edi, eax
add esp, 8
mov eax, dword [ebx]
mov dword [esp + 0x18], edi
cmp byte [eax + 0x264], 0
je 0x50bd3f
xor edi, edi
or ebp, 0xffffffff
push edi
push edi
push esi
mov dword [esp + 0x24], edi
call fcn.0050b260
add esp, 0xc
cmp dword [esi + 0x28], 2
je case.0x50b9f0.1
push esi
mov dword [esi + 0x28], 2
call fcn.00533c50
jmp 0x50ca28
test edi, edi
jne 0x50c2c9
cmp dword [eax + 0xb8], 2
jne 0x50bd5d
cmp byte [eax + 0x25e], 0
je case.0x50b9f0.1
push eax
call fcn.005375f0
add esp, 4
test al, al
je case.0x50b9f0.1
or ebp, 0xffffffff
cmp dword [esi + 0x28], 6
je case.0x50b9f0.1
mov dword [esi + 0x28], 6
jmp case.0x50b9f0.1
lea eax, [esp + 0x17]
push eax
push 0
push dword [ebx]
push esi
call fcn.00510330
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x17], 0
mov dword [esp + 0x18], edi
je 0x50be2a
test edi, edi
jne 0x50bf94
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xb8], 2
jne 0x50bdc7
cmp byte [eax + 0x25e], 0
je 0x50bdd4
push eax
call fcn.005376e0
add esp, 4
test al, al
je 0x50bdea
cmp dword [esi + 0x28], 5
je case.0x50b9f0.1
mov dword [esi + 0x28], 5
jmp case.0x50b9f0.1
mov eax, dword [esi + 0xc]
or ebp, 0xffffffff
mov cl, byte [eax + 0x263]
xor eax, eax
test cl, cl
sete al
add eax, 5
cmp dword [esi + 0x28], eax
je case.0x50b9f0.1
mov dword [esi + 0x28], eax
xor eax, eax
test cl, cl
sete al
mov eax, dword [eax*4 + 0x5b3ffc]
test eax, eax
je case.0x50b9f0.1
push esi
call eax
jmp 0x50ca28
test edi, edi
je case.0x50b9f0.1
jmp 0x50bf94
mov ebx, dword [ebx]
xor edi, edi
mov byte [esp + 0x11], 0
cmp byte [ebx + 0x25c], 0
je 0x50be6b
cmp byte [ebx + 0x26e], 0
je 0x50be78
mov eax, dword [ebx + 0x2a8]
cmp dword [eax + 0x18], edi
jne 0x50bedc
mov byte [esp + 0x11], 1
mov dword [esp + 0x18], edi
jmp 0x50bf1e
cmp byte [ebx + 0x26e], 0
jne 0x50bf10
push 0
push esi
call fcn.00537760
mov edi, eax
add esp, 8
test edi, edi
je 0x50beab
mov ebx, edi
mov dword [esp + 0x18], edi
push esi
call fcn.0040eab0
push 1
push ebx
push esi
call fcn.0050b260
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x50b9f0.1
cmp dword [ebx + 0xb8], 2
jne 0x50bebd
cmp byte [ebx + 0x25e], 0
je 0x50bedc
cmp byte [ebx + 0x263], 0
je 0x50bee4
cmp byte [ebx + 0x260], 0
je 0x50bee4
push ebx
call fcn.005376e0
add esp, 4
test al, al
je 0x50bee4
xor edi, edi
mov dword [esp + 0x18], edi
jmp 0x50bf1e
mov eax, dword [ebx + 0x2a8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x50bf04
lea ecx, [esp + 0x11]
push ecx
push esi
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x50bf09
jmp 0x50bf10
mov byte [esp + 0x11], 1
mov byte [ebx + 0x26e], 1
mov dword [esp + 0x18], edi
mov ebx, edi
test edi, edi
jne 0x50be8f
cmp byte [esp + 0x11], 0
jne 0x50bf3b
cmp dword [esi + 0x28], 7
je case.0x50b9f0.1
mov dword [esi + 0x28], 7
jmp case.0x50b9f0.1
cmp dword [esi + 0x28], 8
je 0x50c139
push esi
mov dword [esi + 0x28], 8
call fcn.00537690
add esp, 4
or ebp, 0xffffffff
jmp case.0x50b9f0.1
mov edx, dword [ebx]
test edx, edx
je 0x50bfb6
mov eax, dword [edx + 0x2a8]
cmp dword [eax + 0x18], ebp
je 0x50bfb6
mov byte [esp + 0x11], 0
lea ecx, [esp + 0x11]
mov eax, dword [edx + 0x2a8]
push ecx
push esi
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esi + 0x28]
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x50bfb0
push esi
call fcn.0040eab0
push 1
push edi
push esi
call fcn.0050b260
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x50b9f0.1
mov al, byte [esp + 0x11]
jmp 0x50bfc2
mov al, 1
xor edi, edi
mov byte [esp + 0x11], al
mov dword [esp + 0x18], edi
test al, al
je case.0x50b9f0.1
cmp ecx, 8
jmp 0x50bf3f
cmp dword [esi + 0x1c8], ebp
je 0x50c076
mov eax, dword [esi + 0x74]
lea edi, [esi + 0x70]
test eax, eax
jne 0x50bfee
mov eax, dword [edi]
test eax, eax
je 0x50bff5
mov byte [eax + 0xe2], 1
push dword [esi + 0xde8]
lea eax, [esi + 0xdb8]
push dword [esi + 0xdb0]
push eax
lea eax, [esi + 0xd80]
push eax
push dword [esi + 0x1cc]
mov eax, dword [esi + 0x1c8]
call eax
mov ecx, dword [esi + 0x74]
add esp, 0x14
mov edx, eax
test ecx, ecx
je 0x50c032
mov byte [ecx + 0xe2], 0
jmp 0x50c03f
mov eax, dword [edi]
test eax, eax
je 0x50c03f
mov byte [eax + 0xe2], 0
test edx, edx
je 0x50c073
push str.operation_aborted_by_pre_request_callback
push esi
call fcn.0050f2a0
mov edi, 0x2a
push esi
mov dword [esp + 0x24], edi
call fcn.0040eab0
push 0
push edi
push esi
call fcn.0050b260
add esp, 0x18
mov byte [esp + 0x10], 1
jmp case.0x50b9f0.1
mov ecx, dword [esi + 0x28]
cmp byte [esi + 0x700], 0
mov edx, dword [esi + 0xc]
je 0x50c0a8
push 0
push edx
call fcn.0050fe60
add esp, 8
cmp dword [esi + 0x28], 0xe
je 0x50c09a
mov dword [esi + 0x28], 0xe
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x18], edi
jmp case.0x50b9f0.1
mov eax, dword [edx + 0x2a8]
xor edi, edi
mov eax, dword [eax + 8]
test eax, eax
je 0x50c0ca
lea ecx, [esp + 0x12]
push ecx
push esi
call eax
mov edx, dword [esi + 0xc]
add esp, 8
mov ecx, dword [esi + 0x28]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x50c19b
cmp byte [esp + 0x12], 0
jne 0x50c154
cmp byte [esi + 0xd02], 0
je 0x50c141
mov eax, dword [esi + 0xd10]
cmp eax, 7
je 0x50c0f6
cmp eax, 5
jne 0x50c141
push 0
push 0
push esi
call fcn.0050b260
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov eax, ecx
neg eax
sbb eax, eax
add eax, 0xf
cmp dword [esi + 0x28], eax
je 0x50c139
mov dword [esi + 0x28], eax
test ecx, ecx
jne 0x50c121
mov eax, dword [esi + 0x70]
dec dword [eax + 0x10]
xor eax, eax
test ecx, ecx
sete al
mov eax, dword [eax*4 + 0x5b4020]
test eax, eax
je 0x50c139
push esi
call eax
add esp, 4
or ebp, 0xffffffff
jmp case.0x50b9f0.1
cmp ecx, 9
je 0x50c14d
mov dword [esi + 0x28], 9
xor ebp, ebp
jmp case.0x50b9f0.1
cmp byte [edx + 0x26d], 0
je 0x50c170
cmp ecx, 0xa
je 0x50c169
mov dword [esi + 0x28], 0xa
xor ebp, ebp
jmp case.0x50b9f0.1
cmp ecx, 0xb
je 0x50c139
push 6
lea eax, [esp + 0x60]
mov dword [esi + 0x28], 0xb
push esi
push eax
mov byte [esi + 0x142], 0
call fcn.005165f0
add esp, 0xc
or ebp, 0xffffffff
jmp case.0x50b9f0.1
cmp edi, 0x37
jne 0x50c259
cmp byte [edx + 0x267], 0
je 0x50c259
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push esi
call fcn.005344a0
add esp, 8
test eax, eax
je 0x50c1d2
mov edi, eax
mov byte [esp + 0x10], 1
mov dword [esp + 0x18], edi
push esi
call fcn.0040eab0
push 0
push edi
push esi
call fcn.0050b260
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test ecx, ecx
je 0x50c248
test eax, eax
je 0x50c207
cmp eax, 0x37
je 0x50c207
mov edi, eax
push ecx
mov dword [esp + 0x1c], edi
call dword [0x5f0998]
jmp 0x50ca28
push 2
push ecx
push esi
call fcn.00533740
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x50c234
cmp dword [esi + 0x28], 2
je 0x50c22f
push esi
mov dword [esi + 0x28], 2
call fcn.00533c50
add esp, 4
or ebp, 0xffffffff
xor edi, edi
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], edi
call dword [0x5f0998]
jmp 0x50ca28
push ecx
mov byte [esp + 0x14], 1
call dword [0x5f0998]
jmp 0x50ca28
push esi
call fcn.0040eab0
add esp, 4
cmp dword [esi + 0xc], ebp
je 0x50c273
push 0
push edi
push esi
call fcn.0050b260
add esp, 0xc
mov byte [esp + 0x10], 1
jmp case.0x50b9f0.1
mov edx, dword [ebx]
test edx, edx
je 0x50c2d3
mov eax, dword [edx + 0x2a8]
cmp dword [eax + 0x1c], ebp
je 0x50c2d3
mov byte [esp + 0x12], 0
lea ecx, [esp + 0x12]
mov eax, dword [edx + 0x2a8]
push ecx
push esi
mov eax, dword [eax + 0x1c]
call eax
mov edx, dword [esi + 0xc]
mov edi, eax
mov ecx, dword [esi + 0x28]
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
je 0x50c2de
push esi
call fcn.0040eab0
push 0
push edi
push esi
call fcn.0050b260
add esp, 0x10
mov byte [esp + 0x10], 1
jmp case.0x50b9f0.1
xor edi, edi
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], edi
cmp byte [esp + 0x12], 0
je case.0x50b9f0.1
mov dl, byte [edx + 0x26d]
xor eax, eax
test dl, dl
sete al
add eax, 0xa
cmp ecx, eax
je 0x50c139
mov dword [esi + 0x28], eax
xor eax, eax
test dl, dl
sete al
mov eax, dword [eax*4 + 0x5b4010]
jmp 0x50c12f
mov eax, dword [ebx]
xor edx, edx
mov dword [esp + 0x2c], edx
xor edi, edi
mov eax, dword [eax + 0x2a8]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x50c342
lea ecx, [esp + 0x2c]
push ecx
push esi
call eax
mov ecx, dword [esi + 0x28]
add esp, 8
mov edx, dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
jne 0x50c2b7
test edx, edx
je 0x50c8d6
xor eax, eax
cmp edx, 1
sete al
lea eax, [eax*2 + 9]
cmp ecx, eax
je 0x50c139
mov dword [esi + 0x28], eax
mov eax, dword [eax*4 + 0x5b3fe8]
jmp 0x50c12f
mov eax, dword [ebx]
mov edx, ecx
cmp byte [eax + 0x278], 0
je 0x50c3db
mov eax, dword [esp + 0x70]
add eax, 0x24
mov dword [esp + 0x30], eax
mov ebp, dword [eax]
test ebp, ebp
je 0x50c3db
mov ebx, dword [ebp]
cmp dword [ebx + 0x28], 2
je 0x50c3b7
push ebx
mov dword [ebx + 0x28], 2
call fcn.00533c50
mov eax, dword [esp + 0x34]
add esp, 4
push 0
push ebp
push eax
call fcn.00532b40
push 8
push 0
push 0
push ebx
call fcn.0050a230
mov byte [ebx + 0xd09], 1
add esp, 0x1c
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x2c0], 0xffffffff
jne 0x50c426
cmp dword [eax + 0x2c4], 0xffffffff
jne 0x50c426
cmp byte [esi + 0xd02], 0
je 0x50c412
mov eax, dword [eax + 0x2a8]
test dword [eax + 0x4c], 0x1000
jne 0x50c412
mov dword [esi + 0xd10], 7
cmp ecx, 0xe
je 0x50c432
mov dword [esi + 0x28], 0xe
or ebp, 0xffffffff
jmp case.0x50b9f0.1
cmp edx, 0xc
je 0x50c432
mov dword [esi + 0x28], 0xc
or ebp, 0xffffffff
jmp case.0x50b9f0.1
push esi
call fcn.00516750
add esp, 4
test eax, eax
je 0x50c454
mov ebx, 0x2a
mov edi, ebx
mov dword [esp + 0x18], edi
jmp 0x50c478
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.00535980
mov edi, eax
add esp, 0x14
mov dword [esp + 0x18], edi
mov ebx, edi
test edi, edi
je 0x50c4ae
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x2a8]
test byte [eax + 0x4c], 2
jne 0x50c497
cmp ebx, 0x5c
je 0x50c497
push 2
push ecx
call fcn.0050fe60
add esp, 8
push esi
call fcn.0040eab0
push 1
push ebx
push esi
call fcn.0050b260
add esp, 0x10
jmp case.0x50b9f0.1
mov edx, dword [esi + 0x218]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x21c]
mov eax, edx
or eax, ecx
movlpd qword [esp + 0x30], xmm0
je 0x50c511
mov ebx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7e8]
push ecx
push edx
push dword [esi + 0x7fc]
movups xmmword [eax], xmm0
push dword [esi + 0x7f8]
push dword [esi + 0x74c]
push dword [esi + 0x748]
call fcn.00516230
add esp, 0x38
mov dword [esp + 0x1c], edx
mov ebx, eax
jmp 0x50c51d
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x220]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x224]
or eax, ecx
movlpd qword [esp + 0x24], xmm0
je 0x50c580
mov edx, dword [esp + 0x74]
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 + 0x800]
push ecx
push edx
push dword [esi + 0x814]
movups xmmword [eax], xmm0
push dword [esi + 0x810]
push dword [esi + 0x744]
push dword [esi + 0x740]
call fcn.00516230
add esp, 0x38
mov ecx, eax
jmp 0x50c588
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, ebx
or eax, dword [esp + 0x1c]
jne 0x50c5c0
mov eax, ecx
or eax, edx
jne 0x50c5c0
cmp dword [esi + 0x28], 0xc
je 0x50c5a3
mov dword [esi + 0x28], 0xc
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.00516aa0
add esp, 0x14
jmp case.0x50b9f0.1
mov eax, dword [esp + 0x1c]
cmp eax, edx
jl 0x50c5e0
jg 0x50c5ce
cmp ebx, ecx
jb 0x50c5e0
push 0xb
push eax
push ebx
push esi
call fcn.0050a230
add esp, 0x10
jmp case.0x50b9f0.1
push 0xb
push edx
push ecx
push esi
call fcn.0050a230
add esp, 0x10
jmp case.0x50b9f0.1
mov edx, dword [esi + 0x218]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x21c]
mov eax, edx
or eax, ecx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
movlpd qword [esp + 0x30], xmm0
je 0x50c663
mov ebx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ebx]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esi + 0x7e8]
push ecx
push edx
push dword [esi + 0x7fc]
movups xmmword [eax], xmm0
push dword [esi + 0x7f8]
push dword [esi + 0x74c]
push dword [esi + 0x748]
call fcn.00516230
add esp, 0x38
mov dword [esp + 0x20], edx
mov ebx, eax
jmp 0x50c66f
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x220]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x224]
or eax, ecx
movlpd qword [esp + 0x24], xmm0
je 0x50c6d6
mov edx, dword [esp + 0x74]
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 + 0x800]
push ecx
push edx
push dword [esi + 0x814]
movups xmmword [eax], xmm0
push dword [esi + 0x810]
push dword [esi + 0x744]
push dword [esi + 0x740]
call fcn.00516230
add esp, 0x38
mov dword [esp + 0x24], eax
mov ecx, eax
jmp 0x50c6e2
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], ecx
mov eax, ebx
mov dword [esp + 0x30], edx
or eax, dword [esp + 0x20]
jne 0x50c8dd
mov eax, ecx
or eax, edx
jne 0x50c8dd
lea eax, [esp + 0x15]
push eax
lea eax, [esp + 0x17]
push eax
push esi
push dword [esi + 0xc]
call fcn.00534190
add esp, 0x10
mov edi, eax
cmp byte [esp + 0x13], 0
mov dword [esp + 0x18], edi
jne 0x50c763
cmp edi, 0x38
je 0x50c763
cmp edi, 0x5c
jne 0x50c7eb
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x2a8]
test byte [eax + 0x4c], 2
jne 0x50c74c
cmp edi, 0x5c
je 0x50c74c
push 2
push ecx
call fcn.0050fe60
add esp, 8
push esi
call fcn.0040eab0
push 1
push edi
push esi
call fcn.0050b260
add esp, 0x10
jmp case.0x50b9f0.1
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005344a0
add esp, 8
test eax, eax
jne 0x50c7dd
cmp dword [esp + 0x1c], ebp
setne bl
test bl, bl
je 0x50c7ef
push esi
mov byte [esp + 0x17], 1
call fcn.0040eab0
add esp, 4
mov edi, 2
push 0
push 0
push esi
call fcn.0050b260
push edi
push dword [esp + 0x2c]
push esi
call fcn.00533740
mov edi, eax
add esp, 0x18
mov dword [esp + 0x18], edi
test edi, edi
jne 0x50c7ce
cmp dword [esi + 0x28], 2
je 0x50c7cb
push esi
mov dword [esi + 0x28], 2
call fcn.00533c50
add esp, 4
or ebp, 0xffffffff
push dword [esp + 0x1c]
call dword [0x5f0998]
jmp 0x50ca28
test edi, edi
jne 0x50c72d
mov edi, eax
mov dword [esp + 0x18], edi
mov bl, byte [esp + 0x14]
test edi, edi
jne 0x50c72d
cmp byte [esp + 0x13], 0
je 0x50c8bc
push esi
call fcn.0040eab0
add esp, 4
test bl, bl
jne 0x50c78e
cmp dword [esi + 0x128], ebp
jne 0x50c895
cmp dword [esi + 0x124], ebp
je 0x50c87c
push dword [esp + 0x1c]
call dword [0x5f0998]
mov eax, dword [esi + 0x124]
push 1
push eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esi + 0x124], ebp
call fcn.00533740
push dword [esp + 0x2c]
mov edi, eax
mov dword [esp + 0x2c], edi
call dword [0x5f0998]
add esp, 0x14
test edi, edi
je 0x50c87c
push 1
push edi
push esi
mov byte [esp + 0x1c], 1
call fcn.0050b260
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
test edi, edi
jne case.0x50b9f0.1
cmp dword [esi + 0x28], 0xe
je 0x50c139
mov dword [esi + 0x28], 0xe
or ebp, 0xffffffff
jmp case.0x50b9f0.1
push dword [esp + 0x1c]
call dword [0x5f0998]
mov eax, dword [esi + 0x128]
add esp, 4
mov dword [esp + 0x1c], eax
mov edi, 3
mov dword [esi + 0x128], ebp
jmp 0x50c793
cmp byte [esp + 0x15], 0
je case.0x50b9f0.1
push 8
push 0
push 0
push esi
call fcn.0050a230
add esp, 0x10
xor ebp, ebp
jmp case.0x50b9f0.1
mov ecx, dword [esp + 0x74]
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [ecx]
push esi
movups xmmword [eax], xmm0
call fcn.00516aa0
add esp, 0x14
cmp dword [esi + 0x28], 0xd
je 0x50c902
mov dword [esi + 0x28], 0xd
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
cmp eax, edx
jl 0x50c92a
jg 0x50c932
mov ecx, dword [esp + 0x24]
cmp ebx, ecx
jb 0x50c92e
push 0xb
push eax
push ebx
push esi
call fcn.0050a230
add esp, 0x10
jmp case.0x50b9f0.1
mov ecx, dword [esp + 0x24]
mov ebx, ecx
mov eax, edx
push 0xb
push eax
push ebx
push esi
call fcn.0050a230
add esp, 0x10
jmp case.0x50b9f0.1
mov eax, dword [ebx]
or ebp, 0xffffffff
test eax, eax
je 0x50c9be
cmp byte [eax + 0x278], 0
je 0x50c9a9
mov eax, dword [esp + 0x70]
add eax, 0x24
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x30], eax
test eax, eax
je 0x50c9a9
mov ebx, dword [eax]
cmp dword [ebx + 0x28], 2
je 0x50c987
push ebx
mov dword [ebx + 0x28], 2
call fcn.00533c50
mov eax, dword [esp + 0x34]
add esp, 4
push 0
push eax
push dword [esp + 0x2c]
call fcn.00532b40
push 8
push 0
push 0
push ebx
call fcn.0050a230
add esp, 0x1c
mov byte [ebx + 0xd09], 1
push 0
push edi
push esi
call fcn.0050b260
add esp, 0xc
test edi, edi
cmove edi, eax
mov dword [esp + 0x18], edi
cmp byte [esi + 0xd02], 0
je 0x50c9df
cmp dword [esi + 0xd10], 7
je 0x50c9df
cmp dword [esi + 0x28], 0
je case.0x50b9f0.1
mov dword [esi + 0x28], 0
jmp case.0x50b9f0.1
cmp dword [esi + 0x28], 0xf
je case.0x50b9f0.1
mov eax, dword [esi + 0x70]
mov dword [esi + 0x28], 0xf
dec dword [eax + 0x10]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x50ca1b
push esi
call fcn.00537610
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebx + 0x2fc]
push eax
call fcn.00532b40
push ebx
push esi
call fcn.004fe4e0
add esp, 0x18
push esi
mov dword [esi + 0xc], 0
call fcn.0050a440
add esp, 4
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
je 0x50ca7d
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0xc]
mov ecx, dword [esp + 0x70]
sub eax, 2
cmp eax, 5
ja 0x50ca81
lea ebx, [esi + 0xc]
cmp ebp, 0xffffffff
je 0x50ca81
cmp byte [ecx + 0xe1], 0
lea ebx, [esi + 0xc]
jne 0x50ca81
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x80]
push esi
call fcn.0050b720
mov edi, dword [esp + 0x2c]
lea ebx, [esi + 0xc]
add esp, 0x14
mov ecx, dword [esp + 0x70]
mov eax, dword [esi + 0x28]
cmp eax, 0xf
jge 0x50cbfd
test edi, edi
je 0x50cb9a
mov ebp, dword [ecx + 0x24]
add ecx, 0x24
mov dword [esp + 0x30], ecx
test ebp, ebp
je 0x50cae2
mov ebx, dword [ebp]
cmp dword [ebx + 0x28], 2
je 0x50cac0
push ebx
mov dword [ebx + 0x28], 2
call fcn.00533c50
mov ecx, dword [esp + 0x34]
add esp, 4
push 0
push ebp
push ecx
call fcn.00532b40
push 8
push 0
push 0
push ebx
call fcn.0050a230
mov byte [ebx + 0xd09], 1
add esp, 0x1c
mov eax, dword [esi + 0x28]
mov ebp, dword [esi + 0xc]
test ebp, ebp
je 0x50cb37
cmp byte [esp + 0x10], 0
je 0x50cb48
cmp edi, 0x1c
push esi
sete byte [esp + 0x3c]
call fcn.00537610
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp + 0x2fc]
push eax
call fcn.00532b40
push ebp
push esi
call fcn.004fe4e0
push 1
push ebp
push esi
mov dword [esi + 0xc], 0
call fcn.0050e240
push dword [esp + 0x5c]
push ebp
push esi
call fcn.00503f30
add esp, 0x30
jmp 0x50cb48
lea ebp, [esi + 0xc]
cmp eax, 2
jne 0x50cb4b
push esi
call fcn.0040eab0
add esp, 4
lea ebp, [esi + 0xc]
cmp dword [esi + 0x28], 0xf
je 0x50cbfa
mov eax, dword [esi + 0x70]
mov dword [esi + 0x28], 0xf
dec dword [eax + 0x10]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x50cb8b
push esi
call fcn.00537610
push 0
lea eax, [esi + 0x1c]
push eax
lea eax, [ebx + 0x2fc]
push eax
call fcn.00532b40
push ebx
push esi
call fcn.004fe4e0
add esp, 0x18
push esi
mov dword [ebp], 0
call fcn.0050a440
jmp 0x50cbf7
cmp dword [ebx], 0
je 0x50cbfd
push esi
call fcn.00516750
add esp, 4
test eax, eax
je 0x50cbfd
push 2
push dword [ebx]
mov edi, 0x2a
mov dword [esp + 0x20], edi
call fcn.0050fe60
mov ecx, dword [esi + 0x28]
xor eax, eax
add esp, 8
cmp ecx, 0xe
setge al
add eax, 0xe
cmp ecx, eax
je 0x50cbfa
mov dword [esi + 0x28], eax
cmp ecx, 0xe
jl 0x50cbe1
mov eax, dword [esi + 0x70]
dec dword [eax + 0x10]
xor eax, eax
cmp ecx, 0xe
setge al
mov eax, dword [eax*4 + 0x5b4020]
test eax, eax
je 0x50cbfa
push esi
call eax
add esp, 4
or ebp, 0xffffffff
cmp dword [esi + 0x28], 0xf
jne 0x50cc4a
mov eax, dword [esi + 0x6c0]
test eax, eax
je 0x50cc16
push edi
push esi
call eax
add esp, 8
jmp 0x50cc3d
lea eax, [esi + 0x30]
mov dword [eax + 0xc], 1
push eax
push eax
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], edi
mov eax, dword [esp + 0x78]
push dword [eax + 0x18]
add eax, 0x14
push eax
call fcn.00532ac0
add esp, 0x10
xor ebp, ebp
cmp dword [esi + 0x28], 0x10
je 0x50cc4a
mov dword [esi + 0x28], 0x10
mov ecx, dword [esp + 0x70]
cmp ebp, 0xffffffff
je 0x50b930
cmp byte [ecx + 0xe1], 0
jne 0x50b930
mov dword [esi + 0x2c], edi
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov dword [esi + 0x2c], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x5c
ret