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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x140
mov ebx, edx
mov dword [esp + 0x28], ecx
mov edx, dword [edx]
add edx, 8
lea esi, [esp + 0x80]
mov ecx, esi
call fcn.0042d2f6
mov ecx, esi
mov edx, 0x53e6b4
call fcn.0047990b
mov edi, eax
mov byte [esp + 9], dl
mov eax, dword [ebx + 4]
lea esi, [esp + 0x10]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
lea eax, [edi + 0x128]
mov dword [esi], eax
mov edx, dword [ebx + 0xc]
add edx, 8
lea ebx, [esp + 0x80]
mov ecx, ebx
call fcn.0046a36a
mov ecx, ebx
mov edx, 0x53e6c4
call fcn.00479858
mov dword [esp + 0x20], eax
mov byte [esp + 0xb], dl
mov ecx, esi
call fcn.00436868
mov eax, dword [eax + 0x18]
mov dword [esp + 0x24], eax
mov ecx, esi
call fcn.00436868
mov eax, dword [eax + 0xcc]
test eax, eax
je 0x482587
mov ecx, dword [ebp + 8]
movsd xmm0, qword [ecx + 0x10]
movups xmm1, xmmword [ecx]
lea ecx, [esp + 0x30]
movsd qword [ecx + 0x10], xmm0
mov dl, byte [ebp + 0xc]
movaps xmmword [ecx], xmm1
mov dword [ecx + 0x18], eax
lea esi, [edi + 0x170]
mov byte [ecx + 0x1c], 0
mov byte [ecx + 0x1e], dl
call fcn.004797ff
test eax, eax
js 0x482434
mov ebx, eax
lea ecx, [esp + 0x10]
call fcn.00436868
mov dl, byte [eax + 0x20]
add dl, 0xfa
movzx ecx, dl
cmp dl, 6
push 6
pop edx
cmovae ecx, edx
cmp cl, 5
je 0x482371
movzx ecx, cl
cmp ecx, 3
jne 0x482438
cmp byte [eax + 0x21], 0
je 0x482438
mov dword [esp + 0x1c], esi
lea eax, [edi + 0xc0]
mov dword [esp + 0xc], eax
lea esi, [esp + 0x10]
mov ecx, esi
call fcn.00436850
add dword [eax + 0xd8], ebx
mov dword [esp + 0x68], 2
and dword [esp + 0x78], 0
mov ecx, esi
call fcn.00436868
mov ebx, dword [eax + 0xd4]
mov ecx, esi
call fcn.00436868
cmp ebx, dword [eax + 0xd8]
jae 0x4823ec
lea esi, [esp + 0x10]
mov ecx, esi
call fcn.00436868
mov ebx, dword [eax + 0xd8]
mov ecx, esi
call fcn.00436850
mov dword [eax + 0xd4], ebx
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.004309e9
cmp byte [ebp + 0xc], 0
mov esi, dword [esp + 0x1c]
je 0x482484
lea ecx, [esp + 0x10]
call fcn.00436850
mov ebx, eax
lea ecx, [eax + 0x20]
mov al, byte [eax + 0x20]
add al, 0xfa
movzx edx, al
cmp al, 6
push 6
pop eax
cmovb eax, edx
cmp al, 3
je 0x48245a
movzx eax, al
cmp eax, 5
jne 0x48259c
mov ebx, ecx
call fcn.00430e08
mov byte [ebx], 3
jmp 0x482471
mov bl, 2
jmp 0x482448
lea ecx, [esp + 0x10]
call fcn.00436868
cmp byte [eax + 0x20], 6
setae bl
lea ecx, [esp + 0x30]
call fcn.00479572
mov bh, byte [esp + 9]
jmp 0x48253b
mov al, byte [ebx + 0x22]
mov byte [esp + 0xa], al
call fcn.00430e08
mov byte [ebx + 0x20], 0xa
mov al, byte [esp + 0xa]
mov byte [ebx + 0x21], al
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0xc]
xor edx, edx
push esi
push eax
call fcn.0043074d
pop eax
pop ecx
mov eax, dword [esp + 0x20]
lea esi, [eax + 8]
lea ebx, [esp + 0x10]
mov ecx, ebx
call fcn.00436868
cmp dword [eax + 0x3c], 0
jle 0x4824cf
lea eax, [edi + 0xb0]
movaps xmm0, xmmword [esp + 0x30]
movaps xmm1, xmmword [esp + 0x40]
lea edx, [esp + 0x80]
movups xmmword [edx + 0x18], xmm1
movups xmmword [edx + 8], xmm0
mov byte [edx], 0
mov ecx, dword [esp + 0xc]
push eax
push ebx
push esi
call fcn.004795d4
add esp, 0xc
jmp 0x48251f
lea ecx, [esp + 0x10]
call fcn.00436868
cmp dword [eax + 0xd8], 0
je 0x48249c
lea ecx, [esp + 0x10]
call fcn.00436850
lea ecx, [eax + 0x64]
movaps xmm0, xmmword [esp + 0x30]
movaps xmm1, xmmword [esp + 0x40]
movups xmmword [esp + 0x98], xmm1
movups xmmword [esp + 0x88], xmm0
mov byte [esp + 0x80], 0
mov edx, esi
lea eax, [esp + 0x80]
push eax
call fcn.0048b6a2
pop eax
mov bh, byte [esp + 9]
lea esi, [esp + 0x60]
mov ecx, esi
call fcn.0047952c
mov ecx, esi
call fcn.0047953d
mov bl, 0xc
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0x24], 0x3b9aca00
setne al
lea edx, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004335e0
pop eax
movzx edx, byte [esp + 0xb]
mov ecx, dword [esp + 0x20]
call fcn.0046a4ef
movzx edx, bh
mov ecx, edi
call fcn.0046a4ef
mov al, 5
cmp bl, 0xc
mov ecx, dword [esp + 0x28]
je 0x48257d
mov byte [ecx + 1], bl
mov al, 3
mov byte [ecx], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x26
pop edx
mov ecx, str.assertion_failed:__stream_id.is_zero__
push 0x53e4b8
call fcn.00506cd0
pop eax
ud2
lea eax, [esp + 0x2c]
mov dword [eax], ecx
lea edx, [esp + 0x58]
lea ecx, [esp + 0x80]
mov dword [ecx], 0x51d2bc
xor esi, esi
inc esi
mov dword [ecx + 4], esi
and dword [ecx + 0x10], 0
mov dword [edx], eax
mov dword [edx + 4], 0x42d330
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], esi
mov edx, 0x51d2c4
call fcn.00506b50
ud2