Function at 0x484eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x571f28
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x180]
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
mov dword [esp + 0x17c], ebx
call fcn.0041d240
mov byte [esp + 0x178], 1
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [ebp + 0x24]
push ebx
mov dword [ebp + 0x2e4], ebx
mov dword [ebp + 0x2c4], 0x80090000
mov dword [ebp + 0x2c8], 0x10000
mov edx, dword [ecx]
mov edx, dword [edx + 0x4c]
push 2
push ebx
mov dword [esp + 0x2c], ebx
mov dword [ecx + 0xa4], ebx
call edx
mov eax, dword [ebp + 0xf0]
mov eax, dword [eax + 0x4c]
lea edx, [esp + 0x18]
push edx
push ebx
lea ecx, [ebp + 0xf0]
push ebx
push 2
push ebx
mov dword [esp + 0x2c], ebx
mov dword [ecx + 0xa4], ebx
call eax
mov edx, dword [ebp + 0x1bc]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [ebp + 0x1bc]
push ebx
push 2
push ebx
mov dword [esp + 0x2c], ebx
mov dword [ecx + 0xa4], ebx
call edx
mov eax, dword [esp + 0x184]
push 1
push ebx
push eax
lea ecx, [esp + 0x30]
mov dword [ebp + 0x2cc], ebx
mov dword [ebp + 0x2d0], ebx
mov dword [ebp + 0x2d4], ebx
call fcn.0041f1c0
cmp byte [esp + 0x50], bl
je 0x485024
mov esi, ebp
call fcn.004863f0
mov byte [esp + 0x178], bl
mov eax, dword [esp + 0x58]
cmp eax, 0x5e96c0
mov dword [esp + 0x24], vtable.TiXmlDocument.0
je 0x484fed
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0041c890
lea eax, [edi - 0x10]
mov dword [esp + 0x178], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48501d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x485578
mov esi, dword [esp + 0x3c]
cmp esi, ebx
je 0x485044
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
test eax, eax
jne 0x485056
mov esi, dword [esi + 0x28]
cmp esi, ebx
jne 0x485030
mov dword [esp + 0x14], ebx
mov esi, ebx
mov edi, dword [esi + 0x20]
add edi, 8
jne 0x485067
xor eax, eax
jmp 0x48507b
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x48504a
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x485070
sub eax, edx
push edi
mov edi, eax
lea eax, [esp + 0x20]
call fcn.004107e0
mov edi, dword [esp + 0x1c]
push str.layer
push edi
call dword [sym.imp.MSVCR80.dll__mbscmp]
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
jne 0x484fc3
lea edi, [esi + 0x2c]
mov esi, str.frame
call fcn.0041e3f0
cmp eax, ebx
je 0x4850c0
mov edx, dword [eax + 0x18]
add edx, 8
jmp 0x4850c2
xor edx, edx
lea ebx, [ebp + 0x2f8]
call fcn.0040fec0
mov esi, str.title
call fcn.0041e3f0
test eax, eax
je 0x4850e3
mov eax, dword [eax + 0x18]
add eax, 8
jmp 0x4850e5
xor eax, eax
push 0xfde9
lea ecx, [esp + 0x74]
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x74], ecx
call fcn.004102d0
mov byte [esp + 0x178], 2
mov edx, dword [esp + 0x6c]
lea edi, [ebp + 0x2b0]
call fcn.00410020
mov byte [esp + 0x178], 1
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x70]
cmp eax, edx
je 0x485131
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov esi, dword [esp + 0x14]
lea ebx, [ebp + 0x2b4]
lea edi, [ebp + 0x2b8]
mov ecx, str.width
mov eax, esi
mov dword [ebx], 0
mov dword [edi], 0
call fcn.0041cdb0
mov ebx, edi
mov ecx, str.height
mov eax, esi
call fcn.0041cdb0
lea ebx, [ebp + 0x2bc]
lea edi, [ebp + 0x2c0]
mov ecx, str.min_width
mov eax, esi
mov dword [ebx], 0
mov dword [edi], 0
call fcn.0041cdb0
mov ebx, edi
mov ecx, str.min_height
mov eax, esi
call fcn.0041cdb0
lea ebx, [esp + 0x14]
mov ecx, str.appwin
mov eax, esi
mov dword [esp + 0x14], 0
call fcn.0041cdb0
cmp dword [esp + 0x14], 0
je 0x4851c2
or dword [ebp + 0x2c8], 0x40000
lea ebx, [esp + 0x14]
mov ecx, str.child
mov eax, esi
mov dword [esp + 0x14], 0
call fcn.0041cdb0
cmp dword [esp + 0x14], 0
je 0x4851fc
mov eax, dword [ebp + 0x2c4]
and eax, 0x39f7ffff
or eax, 0x46000000
mov dword [ebp + 0x2c4], eax
jmp 0x4852bf
lea ebx, [esp + 0x14]
mov ecx, str.holdsize
mov eax, esi
mov dword [esp + 0x14], 0
call fcn.0041cdb0
xor ecx, ecx
cmp dword [esp + 0x14], ecx
mov eax, esi
setne cl
mov dword [esp + 0x14], 0
mov dword [ebp + 0x2e0], ecx
mov ecx, str.resize
call fcn.0041cdb0
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x485255
or dword [ebp + 0x2c4], 0x70000
mov dword [ebp + 0x2dc], 1
jmp 0x485265
or dword [ebp + 0x2c4], 0x20000
mov dword [ebp + 0x2dc], eax
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x14]
mov ecx, str.noborder
mov eax, esi
call fcn.0041cdb0
cmp dword [esp + 0x14], 0
je 0x48528c
or dword [ebp + 0x2c8], 0x88
jmp 0x485296
or dword [ebp + 0x2c8], 0x300
lea ebx, [esp + 0x14]
mov ecx, str.nomove
mov eax, esi
mov dword [esp + 0x14], 0
call fcn.0041cdb0
cmp dword [esp + 0x14], 0
je 0x4852bf
mov dword [ebp + 0x2ac], 0
mov ecx, str.header
mov eax, esi
call fcn.0041cb10
mov edx, dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
mov edi, eax
mov eax, dword [edx + 0xc]
push edi
call eax
test eax, eax
mov dword [ebp + 0x2cc], eax
je 0x4853a0
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5e736c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x178], 3
lea ebx, [esp + 0x14]
mov ecx, str.height
mov eax, edi
mov dword [esp + 0x14], 0
call fcn.0041cdb0
mov ecx, dword [esp + 0x14]
push ecx
push str.0_0__0__d
lea edi, [esp + 0x20]
call fcn.00441d40
mov edi, dword [esp + 0x20]
add esp, 8
push 1
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x1c], esp
mov ebx, esp
call fcn.00441d60
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [esp + 0x184], 4
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov ecx, 0x591f2c
call fcn.0041a080
mov eax, dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
add eax, 0x14
mov eax, dword [eax]
mov byte [esp + 0x184], 3
call eax
mov byte [esp + 0x178], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4853a0
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, str.footer
mov eax, esi
call fcn.0041cb10
mov edi, eax
mov eax, dword [ebp + 0x1bc]
mov edx, dword [eax + 0xc]
lea ecx, [ebp + 0x1bc]
push edi
call edx
test eax, eax
mov dword [ebp + 0x2d4], eax
je 0x48548d
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x178], 5
lea ebx, [esp + 0x18]
mov ecx, str.height
mov eax, edi
mov dword [esp + 0x18], 0
call fcn.0041cdb0
mov eax, dword [esp + 0x18]
push eax
push str.0___d__0__0
lea edi, [esp + 0x1c]
call fcn.00441d40
mov edi, dword [esp + 0x1c]
add esp, 8
push 1
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x28], esp
mov ebx, esp
call fcn.00441d60
add eax, 0x10
mov dword [ebx], eax
push ecx
mov ecx, esp
mov byte [esp + 0x184], 6
mov dword [esp + 0x24], esp
push ecx
mov ecx, 0x591f2c
call fcn.0041a080
mov eax, dword [ebp + 0x1bc]
mov edx, dword [eax + 0x14]
lea ecx, [ebp + 0x1bc]
add eax, 0x14
mov byte [esp + 0x184], 5
call edx
mov byte [esp + 0x178], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x48548d
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, str.body
mov eax, esi
call fcn.0041cb10
mov edx, dword [ebp + 0xf0]
lea esi, [ebp + 0xf0]
push eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp + 0x2d0], eax
je 0x4854fa
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, str.0_0__0__0
call fcn.0041a080
push ecx
mov byte [esp + 0x184], 7
mov edx, esp
mov dword [esp + 0x24], esp
push edx
mov ecx, 0x591f2c
call fcn.0041a080
mov eax, dword [esi]
add eax, 0x14
mov eax, dword [eax]
mov ecx, esi
mov byte [esp + 0x184], 1
call eax
cmp dword [ebp + 4], ebx
mov dword [ebp + 0x2e4], 1
je 0x48551c
mov eax, ebp
call fcn.00486280
mov dword [ebp + 0x298], ebx
mov dword [ebp + 0x29c], ebx
mov byte [esp + 0x178], bl
mov eax, dword [esp + 0x58]
cmp eax, 0x5e96c0
mov dword [esp + 0x24], vtable.TiXmlDocument.0
je 0x48553f
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0041c890
mov dword [esp + 0x178], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret 8