Function at 0x472c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63cf28
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6bc858]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x54], edi
test edi, edi
jne 0x472c93
cmp byte [ebx + 0x48], dl
jne 0x472c8c
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 2
mov esi, dword [str.Failed_to_open_file]
test esi, esi
jne 0x472c67
push 0x3a2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexstring
push str.invalid_null_pointer
call fcn.00563e60
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472c70
sub eax, edx
push eax
push esi
lea ecx, [ebx + 0x50]
call fcn.00412c10
or eax, 0xffffffff
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x74], eax
xor al, al
jmp 0x472eb0
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x472cb1
lea ebx, [ebx]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x44]
push 1
call edx
test esi, esi
jne 0x472ca0
xor eax, eax
push 2
push eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
or esi, 0xffffffff
push edi
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
call fcn.005f6250
push edi
call fcn.005fbae0
push 0
mov edi, eax
mov eax, dword [ebp - 0x54]
push 0
push eax
call fcn.005f6250
add esp, 0x1c
test edi, edi
jg 0x472d40
cmp byte [ebx + 0x48], 0
jne 0x472d39
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0xc
mov edi, dword [str.Error_document_empty.]
test edi, edi
jne 0x472d19
push 0x3a2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexstring
push str.invalid_null_pointer
call fcn.00563e60
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472d20
sub eax, edx
push eax
push edi
lea ecx, [ebx + 0x50]
call fcn.00412c10
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x74], esi
xor al, al
jmp 0x472eb0
lea ecx, [edi + 1]
push ecx
call fcn.00563e10
mov edx, dword [ebp - 0x54]
push edx
mov esi, eax
push 1
push edi
push esi
mov dword [ebp - 0x58], esi
mov byte [esi], 0
call fcn.005f5d00
add esp, 0x14
cmp eax, 1
je 0x472dbc
push esi
call fcn.005f0f30
add esp, 4
cmp byte [ebx + 0x48], 0
jne 0x472c8c
mov byte [ebx + 0x48], 1
mov dword [ebx + 0x4c], 2
mov eax, dword [str.Failed_to_open_file]
mov esi, eax
test eax, eax
jne 0x472da6
push 0x3a2
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VCincludexstring
push str.invalid_null_pointer
call fcn.00563e60
add esp, 0xc
mov eax, esi
lea edx, [eax + 1]
jmp 0x472db0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x472db0
jmp 0x472c77
mov edx, dword [ebp - 0x58]
mov byte [edx + edi], 0
cmp byte [edx], 0
mov eax, esi
je 0x472dec
lea ebx, [ebx]
mov cl, byte [eax]
cmp cl, 0xd
jne 0x472de3
mov byte [esi], 0xa
inc eax
inc esi
cmp byte [eax], 0xa
jne 0x472de7
jmp 0x472de6
mov byte [esi], cl
inc esi
inc eax
cmp byte [eax], 0
jne 0x472dd0
push edx
lea ecx, [ebp - 0x30]
mov byte [esi], 0
call fcn.00412330
lea eax, [ebp - 0x30]
push eax
mov esi, str.__xml_version
mov dword [ebp - 4], 0
call fcn.00460950
mov dword [ebp - 0x54], eax
test eax, eax
je 0x472e72
push eax
push 0
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00415980
lea edi, [ebx + 0x80]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00419940
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.00412410
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
push ecx
push eax
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00415980
mov esi, eax
lea edi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00419940
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.00412410
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x472e7e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx]
push 0
push 0
push eax
mov eax, dword [edx + 8]
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.005f0f30
add esp, 4
cmp byte [ebx + 0x48], 0
lea ecx, [ebp - 0x30]
sete bl
mov dword [ebp - 4], 0xffffffff
call fcn.00412410
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f0da0
mov esp, ebp
pop ebp
ret