Function at 0x10052260
Capabilities:
Check if file exists
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10170d60
mov eax, dword fs:[0]
push eax
mov eax, 0x1200
call fcn.100ac780
mov eax, dword [0x101bd92c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x11a4], esi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x120c]
mov dword [esi + 8], 1
call fcn.100b4370
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1194], ebx
cmp dword [esi], ebx
je 0x10052332
push 0x1019a4e4
push str.Skin
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10053110
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.10090f8f
push esi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x1194], eax
call fcn.10098090
push edi
push ebx
push esi
call fcn.10096710
add esp, 0x1c
lea ecx, [ebp - 0x120c]
push 0
push 0
push esi
call fcn.100b6620
jmp 0x10052478
cmp dword [esi + 0xc], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x10052379
add esi, 0x14
cmp dword [esi + 0x14], 8
jb 0x1005234a
mov eax, dword [esi]
jmp 0x1005234c
mov eax, esi
push eax
lea eax, [ebp - 0x834]
push str._sTempSkinSkin.xml
push eax
call fcn.10091da4
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
call ebx
test eax, eax
jne 0x10052399
cmp dword [esi + 0x14], 8
jb 0x10052376
mov esi, dword [esi]
push esi
jmp 0x10052385
cmp dword [esi + 0x28], 8
lea eax, [esi + 0x14]
jb 0x10052384
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x834]
push str._sSkinSkin.xml
push eax
call fcn.10091da4
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
call ebx
test eax, eax
je 0x10053110
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x834]
push eax
push 0
push 1
call esi
push 0
push 0
push eax
lea eax, [ebp - 0xb44]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x834]
push eax
push 0
push 1
call esi
push 0
lea eax, [ebp - 0xb44]
push eax
lea ecx, [ebp - 0x120c]
call fcn.100b5150
test al, al
jne 0x1005246b
push 0x1019a4e4
push str.Skin
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10053110
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.10090f8f
push esi
push 0
push eax
mov dword [ebp - 0x1194], eax
call fcn.10098090
push edi
push ebx
mov ebx, dword [ebp - 0x1194]
push ebx
call fcn.10096710
add esp, 0x1c
lea ecx, [ebp - 0x120c]
push 0
push 0
push ebx
call fcn.100b6620
jmp 0x10052478
mov eax, dword [ebp - 0x11a4]
mov dword [eax + 8], 0
push str.TheSkin
lea ecx, [ebp - 0x120c]
call fcn.100b38b0
test eax, eax
je 0x10053110
mov ecx, eax
call fcn.100b3950
mov ebx, eax
mov dword [ebp - 0x1190], ebx
test ebx, ebx
je 0x100530f6
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ecx]
push 0x10
call fcn.10092352
add esp, 4
test eax, eax
je 0x100524db
mov dword [eax], method.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.virtual_0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x100524dd
xor eax, eax
push 0
push 0
mov dword [ebp - 0x1198], eax
mov esi, dword [ebx + 0x20]
push 0xffffffffffffffff
add esi, 8
push esi
push 0
push 0xfde9
call edi
push eax
lea eax, [ebp - 0xa3c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
push 0x10
call fcn.10092352
add esp, 4
test eax, eax
je 0x10052538
mov dword [eax], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x1005253a
xor eax, eax
push 8
mov dword [ebp - 0x11bc], eax
call fcn.10092352
add esp, 4
mov dword [ebp - 0x119c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10052561
mov ecx, eax
call fcn.100460f0
jmp 0x10052563
xor eax, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x11ac], eax
lea eax, [ebx + 0x2c]
mov ebx, dword [eax + 0x20]
cmp ebx, eax
je 0x10052725
test ebx, ebx
je 0x10052725
mov esi, dword [ebx + 0x18]
mov edi, dword [ebx + 0x14]
add esi, 8
add edi, 8
je 0x1005270e
test esi, esi
je 0x1005270e
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
push eax
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call edi
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
push eax
lea eax, [ebp - 0x424]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
xor eax, eax
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
cmp word [ebp - 0x424], ax
jne 0x1005261a
xor ecx, ecx
jmp 0x10052632
lea ecx, [ebp - 0x424]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052623
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x1174]
call fcn.100048b0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
cmp word [ebp - 0x21c], ax
jne 0x10052673
xor ecx, ecx
jmp 0x1005268f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052680
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x118c]
call fcn.100048b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x11ac]
lea edx, [ebp - 0x1174]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x118c]
push edx
call dword [eax]
cmp dword [ebp - 0x1178], 8
jb 0x100526d5
push dword [ebp - 0x118c]
call fcn.10091747
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x1160], 8
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
jb 0x10052714
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
jmp 0x10052714
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, ebx
call fcn.100b3b60
mov ebx, eax
test ebx, ebx
jne 0x10052583
push 7
xor eax, eax
push str.OurSelf
lea ecx, [ebp - 0x1174]
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
call fcn.100048b0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x11bc]
lea edx, [ebp - 0x11ac]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1174]
push edx
call dword [eax]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1160], 8
jb 0x1005278b
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
push 7
xor eax, eax
push str.OurSelf
lea ecx, [ebp - 0x1174]
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
call fcn.100048b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1198]
lea edx, [ebp - 0x11bc]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1174]
push edx
call dword [eax]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1160], 8
jb 0x100527f1
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
mov ecx, str.SkinConfigure
lea eax, [ebp - 0xa3c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10052826
test dx, dx
je 0x10052822
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10052826
add eax, 4
add ecx, 4
test dx, dx
jne 0x10052800
xor eax, eax
jmp 0x1005282b
sbb eax, eax
or eax, 1
mov esi, dword [ebp - 0x1190]
mov ecx, esi
test eax, eax
jne 0x10052bdb
call fcn.100b3950
mov ebx, eax
test ebx, ebx
je 0x1005302a
lea ebx, [ebx]
mov esi, dword [ebx + 0x20]
push 0
push 0
push 0xffffffffffffffff
add esi, 8
push esi
push 0
push 0xfde9
call edi
push eax
lea eax, [ebp - 0x62c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
push 0x10
call fcn.10092352
add esp, 4
test eax, eax
je 0x100528a5
mov dword [eax], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x100528a7
xor eax, eax
push 8
mov dword [ebp - 0x11b0], eax
call fcn.10092352
mov edi, eax
add esp, 4
mov dword [ebp - 0x119c], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x10052909
push 8
mov dword [edi], vtable.MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
call fcn.10092352
mov esi, eax
add esp, 4
mov dword [ebp - 0x11a0], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x10052902
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10046cf0
mov dword [esi], eax
mov dword [edi + 4], esi
jmp 0x1005290b
xor esi, esi
mov dword [edi + 4], esi
jmp 0x1005290b
xor edi, edi
mov byte [ebp - 4], 0
mov ecx, ebx
mov dword [ebp - 0x11b8], edi
call fcn.100b3950
mov edi, eax
test edi, edi
je 0x10052acd
mov esi, dword [edi + 0x20]
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
add esi, 8
push esi
push 0
push 0xfde9
call eax
push eax
lea eax, [ebp - 0xd4c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x10052abc
mov eax, dword [ecx]
call dword [eax + 0x30]
test eax, eax
je 0x10052abc
mov esi, dword [eax + 0x20]
push 0
push 0
push 0xffffffffffffffff
add esi, 8
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea eax, [ebp - 0x115c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
cmp word [ebp - 0x115c], ax
jne 0x100529cd
xor ecx, ecx
jmp 0x100529e5
lea ecx, [ebp - 0x115c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100529d6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x115c]
push eax
lea ecx, [ebp - 0x1174]
call fcn.100048b0
mov byte [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
cmp word [ebp - 0xd4c], ax
jne 0x10052a26
xor ecx, ecx
jmp 0x10052a3f
lea ecx, [ebp - 0xd4c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052a30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xd4c]
push eax
lea ecx, [ebp - 0x118c]
call fcn.100048b0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x11b8]
lea edx, [ebp - 0x1174]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x118c]
push edx
call dword [eax]
cmp dword [ebp - 0x1178], 8
jb 0x10052a85
push dword [ebp - 0x118c]
call fcn.10091747
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x1160], 8
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
jb 0x10052abc
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
mov ecx, edi
call fcn.100b39c0
mov edi, eax
test edi, edi
jne 0x10052926
push 7
xor eax, eax
push str.OurSelf
lea ecx, [ebp - 0x1174]
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
call fcn.100048b0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x11b0]
lea edx, [ebp - 0x11b8]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1174]
push edx
call dword [eax]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1160], 8
jb 0x10052b33
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
xor eax, eax
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
cmp word [ebp - 0x62c], ax
jne 0x10052b5d
xor ecx, ecx
jmp 0x10052b75
lea ecx, [ebp - 0x62c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052b66
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x1174]
call fcn.100048b0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x1198]
lea edx, [ebp - 0x11b0]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1174]
push edx
call dword [eax]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1160], 8
jb 0x10052bbf
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
mov ecx, ebx
call fcn.100b39c0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jne 0x10052850
jmp 0x10053024
call fcn.100b3950
mov ebx, eax
mov dword [ebp - 0x119c], ebx
test ebx, ebx
je 0x1005302a
push 0x10
call fcn.10092352
add esp, 4
test eax, eax
je 0x10052c1b
mov dword [eax], vtable.VectorParameter_class_MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x10052c1d
xor eax, eax
push 0
push 0
mov dword [ebp - 0x11b4], eax
mov esi, dword [ebx + 0x20]
push 0xffffffffffffffff
add esi, 8
push esi
push 0
push 0xfde9
call edi
push eax
lea eax, [ebp - 0x62c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
mov ecx, ebx
call fcn.100b3950
mov ebx, eax
mov dword [ebp - 0x11a0], ebx
test ebx, ebx
je 0x10052f7a
push 8
call fcn.10092352
mov edi, eax
add esp, 4
mov dword [ebp - 0x11c0], edi
mov byte [ebp - 4], 0xc
test edi, edi
je 0x10052cc0
push 8
mov dword [edi], vtable.MapParameter_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
call fcn.10092352
mov esi, eax
add esp, 4
mov dword [ebp - 0x11c4], esi
mov byte [ebp - 4], 0xd
test esi, esi
je 0x10052cb9
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10046cf0
mov dword [esi], eax
mov dword [edi + 4], esi
jmp 0x10052cc2
xor esi, esi
mov dword [edi + 4], esi
jmp 0x10052cc2
xor edi, edi
lea eax, [ebx + 0x2c]
mov byte [ebp - 4], 0
mov dword [ebp - 0x11a8], edi
mov ebx, dword [eax + 0x20]
cmp ebx, eax
je 0x10052ecd
test ebx, ebx
je 0x10052ecd
mov esi, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
push 0
push 0
push 0xffffffffffffffff
add esi, 8
push esi
push 0
push 0xfde9
add edi, 8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call esi
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
push eax
lea eax, [ebp - 0x424]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
mov ecx, 0x10199e80
lea eax, [ebp - 0x21c]
jmp 0x10052d50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10052d76
test dx, dx
je 0x10052d72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10052d76
add eax, 4
add ecx, 4
test dx, dx
jne 0x10052d50
xor eax, eax
jmp 0x10052d7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10052d9a
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0xf54]
push 0x10192050
push eax
call fcn.10091da4
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
cmp word [ebp - 0x424], ax
je 0x10052ddf
lea eax, [ebp - 0x424]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10052dd0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x1174]
call fcn.100048b0
mov byte [ebp - 4], 0xe
xor eax, eax
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
cmp word [ebp - 0x21c], ax
jne 0x10052e20
xor ecx, ecx
jmp 0x10052e3f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052e30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x118c]
call fcn.100048b0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x11a8]
lea edx, [ebp - 0x1174]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x118c]
push edx
call dword [eax]
cmp dword [ebp - 0x1178], 8
jb 0x10052e85
push dword [ebp - 0x118c]
call fcn.10091747
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
cmp dword [ebp - 0x1160], 8
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
jb 0x10052ebc
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
mov ecx, ebx
call fcn.100b3b60
mov ebx, eax
test ebx, ebx
jne 0x10052ce2
xor eax, eax
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
cmp word [ebp - 0xf54], ax
jne 0x10052ef7
xor ecx, ecx
jmp 0x10052f0f
lea ecx, [ebp - 0xf54]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052f00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xf54]
push eax
lea ecx, [ebp - 0x1174]
call fcn.100048b0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x11b4]
lea edx, [ebp - 0x11a8]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1174]
push edx
call dword [eax]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1160], 8
jb 0x10052f59
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
mov ecx, dword [ebp - 0x11a0]
call fcn.100b39c0
mov ebx, eax
mov dword [ebp - 0x11a0], eax
test ebx, ebx
jne 0x10052c64
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
mov dword [ebp - 0x1160], 7
mov dword [ebp - 0x1164], 0
mov word [ebp - 0x1174], ax
cmp word [ebp - 0x62c], ax
jne 0x10052fa4
xor ecx, ecx
jmp 0x10052fbf
lea ecx, [ebp - 0x62c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10052fb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x1174]
call fcn.100048b0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x1198]
lea edx, [ebp - 0x11b4]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x1174]
push edx
call dword [eax]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1160], 8
jb 0x10053009
push dword [ebp - 0x1174]
call fcn.10091747
add esp, 4
mov ecx, dword [ebp - 0x119c]
call fcn.100b39c0
mov ebx, eax
mov dword [ebp - 0x119c], eax
test ebx, ebx
jne 0x10052bf0
mov esi, dword [ebp - 0x1190]
xor eax, eax
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
cmp word [ebp - 0xa3c], ax
jne 0x10053054
xor ecx, ecx
jmp 0x1005306f
lea ecx, [ebp - 0xa3c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10053060
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xa3c]
push eax
lea ecx, [ebp - 0x118c]
call fcn.100048b0
mov eax, dword [ebp - 0x11a4]
mov byte [ebp - 4], 0x12
mov ecx, dword [eax + 0x7c]
lea edx, [ebp - 0x1198]
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x118c]
push edx
call dword [eax]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1178], 8
jb 0x100530bc
push dword [ebp - 0x118c]
call fcn.10091747
add esp, 4
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x1178], 7
mov dword [ebp - 0x117c], 0
mov word [ebp - 0x118c], ax
call fcn.100b39c0
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x1190], eax
test ebx, ebx
jne 0x100524b0
mov eax, dword [ebp - 0x1194]
test eax, eax
je 0x10053109
push eax
call fcn.1009503c
add esp, 4
mov esi, 1
jmp 0x10053112
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11d8]
mov dword [ebp - method.TiXmlDocument.virtual_0], vtable.TiXmlDocument.0
cmp eax, 0x101e189c
je 0x10053139
push eax
call fcn.1009503c
add esp, 4
lea ecx, [ebp - 0x120c]
call fcn.100b4000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret 4