Function at 0x4973c0
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae564
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x48], eax
mov edi, dword [ebp + 8]
mov dword [eax + 0x30], 0
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x6c], ecx
mov dword [edi + 0x38], eax
lea ecx, [edi + 0xc]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x50], edi
mov byte [eax], 0
mov eax, dword [edi + 0x48]
mov dword [edi + 0x4c], 0
mov byte [eax], 0
mov eax, dword [edi + 0x54]
mov dword [edi + 0x58], 0
mov byte [eax], 0
mov eax, dword [edi + 0x60]
mov dword [edi + 0x64], 0
mov byte [eax], 0
mov dword [edi + 4], 0
call fcn.004984f0
mov ecx, dword [edi + 0x78]
lea edx, [edi + 0x18]
call fcn.0047e180
test eax, eax
jne 0x497685
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 1
mov edx, 0x20
mov eax, dword [edi + 0x78]
xor ecx, ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x64], ecx
mov ecx, SysReAllocString
lea edi, [ebp - 0x58]
cmp edx, ecx
push edi
cmovb ecx, edx
mov edx, dword [ebp - 0x4c]
push ecx
push dword [ebp - 0x60]
mov eax, dword [edx]
push edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
add dword [ebp - 0x64], ecx
sub edx, ecx
add dword [ebp - 0x60], ecx
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], edx
test eax, eax
jne 0x497667
test ecx, ecx
je 0x4974d4
test edx, edx
jne 0x497492
xor eax, eax
cmp dword [ebp - 0x64], 0x20
setne al
mov dword [ebp - 0x54], eax
jne 0x497667
lea ecx, [ebp - 0x40]
mov eax, dword [ecx]
cmp eax, dword [str.MSCF]
jne 0x497651
mov eax, dword [ecx + 4]
cmp eax, dword [0x5c1ae8]
jne 0x497651
cmp dword [ebp - 0x34], 0
jne 0x497651
cmp dword [ebp - 0x2c], 0
jne 0x497651
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x6c], ecx
cmp ecx, 0x24
jb 0x497651
movzx eax, word [ebp - 0x22]
mov dword [edi + 0x2c], eax
cmp eax, 7
ja 0x497651
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x70], eax
test eax, eax
je 0x49754b
cmp eax, ecx
ja 0x497651
movzx eax, byte [ebp - 0x28]
mov byte [edi + 0x20], al
movzx eax, byte [ebp - 0x27]
mov byte [edi + 0x21], al
movzx eax, word [ebp - 0x26]
mov dword [edi + 0x24], eax
movzx eax, word [ebp - 0x24]
push 0x28
mov dword [edi + 0x28], eax
call fcn.00587dd8
mov esi, eax
add esp, 4
mov dword [ebp - 0x4c], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.CLimitedSequentialInStream.0
push esi
mov dword [esi + 8], 0
call dword [0x5cb568]
mov ecx, dword [edi + 0x78]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x4c], ecx
test ecx, ecx
je 0x4975a4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4975b1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x4c]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x6c]
sub eax, 8
mov dword [esi + 0x14], 0
push 0x8000
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [ebp - 0x70], 0
call fcn.0058813f
movups xmm0, xmmword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x68], eax
lea edx, [ebp - 0x58]
mov dword [ebp - 0x74], eax
movups xmmword [eax], xmm0
mov dword [ebp - 0x70], 0x8000
movups xmm0, xmmword [ebp - 0x30]
push edx
push 0x7fe0
movups xmmword [eax + 0x10], xmm0
mov ecx, dword [esi]
add eax, 0x20
push eax
push esi
mov dword [ebp - 0x88], eax
call dword [ecx + 0xc]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x497667
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
add eax, 0x20
add eax, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
jmp 0x4978a3
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x4976a2
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x4976a2
mov eax, 1
mov dword [ebp - 0x54], eax
mov edi, dword [ebp - 0x54]
mov byte [ebp - 4], 9
test esi, esi
je 0x497678
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
push dword [ebp - 0x68]
call fcn.00588148
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x78]
push 0x8030
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xb8], str.MSCF
mov dword [ebp - 0xb4], 8
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xb0], 0x20
mov dword [ebp - 0xac], 0x20
mov dword [ebp - 0xa8], 0x8020
mov dword [ebp - 0x70], 0
call fcn.0058813f
movups xmm0, xmmword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x84], eax
movups xmmword [eax], xmm0
mov dword [ebp - 0x74], eax
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x70], 0x8030
movups xmmword [eax + 0x10], xmm0
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xbc], 0x20
mov dword [ebp - 0xc0], 1
call fcn.00497230
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x497667
nop dword [eax + eax]
mov edx, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc4]
add ecx, edx
mov dword [ebp - 0x60], edx
cmp dword [ecx + 0xc], 0
jne 0x4977a6
cmp dword [ecx + 0x14], 0
jne 0x4977a6
mov eax, dword [ecx + 8]
mov dword [ebp - 0x4c], eax
mov dword [edi + 0x6c], eax
cmp eax, 0x24
jb 0x4977a6
movzx eax, word [ecx + 0x1e]
mov dword [edi + 0x2c], eax
cmp eax, 7
ja 0x4977a6
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x70], eax
test eax, eax
je 0x4977c4
cmp eax, dword [ebp - 0x4c]
jbe 0x4977c4
inc edx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc0], edx
call fcn.00497230
mov dword [ebp - 0x54], eax
test eax, eax
je 0x497760
jmp 0x497667
movzx eax, byte [ecx + 0x18]
mov byte [edi + 0x20], al
movzx eax, byte [ecx + 0x19]
mov byte [edi + 0x21], al
movzx eax, word [ecx + 0x1a]
mov dword [edi + 0x24], eax
movzx eax, word [ecx + 0x1c]
mov ecx, edx
mov dword [edi + 0x28], eax
xor eax, eax
add ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x4c], eax
adc eax, dword [ebp - 0x98]
push 0x28
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], eax
call fcn.00587dd8
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
mov dword [esi + 4], 0
mov dword [esi], vtable.CLimitedSequentialInStream.0
mov dword [esi + 8], 0
mov ecx, dword [edi + 0x78]
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x49782c
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x497839
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x58]
mov dword [esi + 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xbc]
mov edx, ecx
mov eax, dword [ebp - 0x60]
sub edx, eax
mov dword [ebp - 0x5c], edx
mov edx, dword [edi + 0x6c]
mov dword [ebp - 0x80], esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
cmp edx, dword [ebp - 0x5c]
ja 0x497887
mov dword [esi + 0x10], 0
mov ecx, dword [edi + 0x6c]
add ecx, eax
jmp 0x49788d
sub edx, dword [ebp - 0x5c]
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x68]
add ecx, edx
add edx, 0x20
mov dword [ebp - 0x90], ecx
add eax, edx
mov dword [ebp - 0x88], eax
mov edx, dword [ebp - 0x48]
mov edi, 8
mov ecx, dword [ebp - 0x84]
mov eax, 0x18
mov dword [ebp - 0x58], edx
xorps xmm0, xmm0
mov byte [ebp - 0x41], 0
mov dword [edx + edi], ecx
mov ecx, edx
movlpd qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x6c], edx
mov dword [ecx + eax], 0x8000
mov ecx, 0x10
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x5c], edx
mov dword [ecx + edx], eax
mov eax, edx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x64], edx
mov edx, 0x10
mov edi, dword [ebp - 0x50]
mov dword [edx + eax + 4], ecx
mov edx, 4
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [edx + ecx], eax
mov edx, 0x1c
mov ecx, dword [ebp - 0x6c]
mov al, byte [ebp - 0x41]
mov byte [ecx + edx], al
mov ecx, 0x20
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x58]
mov dword [eax + ecx], 0
cmp dword [edx + 0x2c], 0
mov byte [edx + 0x30], 1
mov dword [edx + 0xc], esi
jne 0x497998
cmp dword [edx + 0x2c], 0x1000
je 0x497998
mov eax, dword [edx + 0x28]
test eax, eax
je 0x497977
push eax
call fcn.00588148
mov edx, dword [ebp - 0x48]
add esp, 4
mov dword [edx + 0x28], 0
push 0x1000
mov dword [edx + 0x2c], 0
call fcn.0058813f
mov edx, dword [ebp - 0x48]
add esp, 4
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], 0x1000
mov eax, dword [edi + 0x2c]
mov ecx, edx
shr eax, 2
and eax, 1
lea eax, [eax*4 + 4]
push eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00554e30
cmp eax, dword [ebp - 0x50]
jne 0x497c9a
movzx eax, word [ebp - 0x20]
mov dword [edi + 0x30], eax
movzx eax, word [ebp - 0x1e]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x2c]
shr eax, 2
test al, 1
je 0x4979f9
movzx eax, byte [ebp - 0x1a]
mov ecx, dword [ebp - 0x1c]
mov byte [edi + 0x3a], al
movzx eax, byte [ebp - 0x19]
mov byte [edi + 0x3b], al
movzx eax, cx
mov word [edi + 0x38], cx
mov ecx, dword [ebp - 0x48]
push eax
call fcn.00496fe0
test byte [edi + 0x2c], 1
je 0x497a17
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0x3c]
push eax
call fcn.00497040
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0x48]
push eax
call fcn.00497040
mov eax, dword [edi + 0x2c]
shr eax, 1
test al, 1
je 0x497a38
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0x54]
push eax
call fcn.00497040
mov ecx, dword [ebp - 0x48]
lea eax, [edi + 0x60]
push eax
call fcn.00497040
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x50], eax
mov dword [edi + 4], 0
cmp eax, dword [edi + 8]
jbe 0x497a8c
cmp eax, 0x7fffffff
ja 0x497ca8
push dword [edi]
call fcn.00588148
mov eax, dword [ebp - 0x50]
mov ecx, 8
mul ecx
mov ecx, 0xffffffff
mov dword [edi], 0
mov dword [edi + 8], 0
cmovb eax, ecx
push eax
call fcn.0058813f
mov dword [edi], eax
add esp, 8
mov eax, dword [ebp - 0x50]
mov dword [edi + 8], eax
cmp dword [edi + 0x24], 0
mov dword [ebp - 0x50], 0
jbe 0x497afe
nop dword [eax]
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push 8
push eax
call fcn.00554e30
cmp eax, 8
jne 0x497c9a
mov ax, word [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
mov word [ebp - 0x78], ax
movzx eax, byte [ebp - 0x1a]
mov byte [ebp - 0x76], al
movzx eax, byte [ebp - 0x19]
mov byte [ebp - 0x75], al
movzx eax, byte [edi + 0x3a]
push eax
call fcn.00496fe0
mov edx, dword [edi + 4]
mov ecx, dword [ebp - 0x20]
lea eax, [edx + 1]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + edx*8], ecx
mov ecx, dword [ebp - 0x78]
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, dword [edi + 0x24]
jb 0x497aa0
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov eax, dword [ecx]
sub eax, dword [ecx + 8]
add eax, dword [ecx + 0x20]
adc edx, edx
add eax, dword [ecx + 0x10]
adc edx, dword [ecx + 0x14]
sub eax, dword [ebp - 0x60]
mov ecx, dword [edi + 0x70]
sbb edx, dword [ebp - 0x4c]
cmp eax, ecx
jne 0x497b24
test edx, edx
je 0x497b8d
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
adc eax, 0
push eax
push ecx
mov ecx, dword [edi + 0x78]
call fcn.00430da0
add esp, 8
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x497667
mov eax, dword [edi + 0x6c]
mov ecx, esi
sub eax, dword [edi + 0x70]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ecx + 0x20], 0
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0xc]
mov dword [ebp - 0x4c], eax
call fcn.004984f0
push dword [ebp - 0x4c]
lea ecx, [edi + 0xc]
call fcn.00439710
cmp dword [edi + 0x28], 0
mov dword [ebp - 0x50], 0
jbe 0x497c82
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x20]
push 0x10
push eax
call fcn.00554e30
cmp eax, 0x10
jne 0x497c9a
push 0x20
call fcn.00587dd8
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 7
push 4
mov dword [eax], 0
call fcn.0058813f
mov edx, dword [ebp - 0x4c]
add esp, 8
mov byte [ebp - 4], 1
mov dword [edx], eax
mov dword [edx + 4], 0
mov dword [edx + 8], 3
mov byte [eax], 0
mov ecx, dword [edi + 0x10]
push edx
lea eax, [ecx + 1]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x20]
movzx ecx, word [ebp - 0x16]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
movzx eax, word [ebp - 0x18]
mov dword [edx + 0x18], eax
movzx eax, word [ebp - 0x14]
shl ecx, 0x10
or ecx, eax
mov ax, word [ebp - 0x12]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0x48]
mov word [edx + 0x1e], ax
call fcn.00497040
mov eax, dword [ebp - 0x4c]
mov ecx, dword [edi + 4]
mov eax, dword [eax + 0x18]
cmp eax, 0xfffd
je 0x497c6c
cmp eax, 0xffff
je 0x497c6c
cmp eax, 0xfffe
jne 0x497c6e
lea eax, [ecx - 1]
jmp 0x497c6e
xor eax, eax
cmp eax, ecx
jge 0x497c89
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp eax, dword [edi + 0x28]
jb 0x497bb7
xor edi, edi
jmp 0x49766a
mov eax, dword [ebp - 0x48]
mov edi, 1
mov byte [eax + 0x33], 1
jmp 0x49766a
push 0x5f7a9c
lea eax, [ebp - 0x41]
push eax
call fcn.0058acc1
push 0x5f79a8
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x7e5
push eax
call fcn.0058acc1
int3