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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x400732b0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov edi, ecx
add dword [edi + 0x5c], 2
mov eax, dword [edi + 0x5c]
cmp eax, dword [edi + 0x58]
jne 0x40036f16
cmp byte [str.Character_set_declaration_starting_with___terminated_prematurely___either_no___was_found_or_the_set_had_no_content.], 0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jne 0x40036e90
xor eax, eax
jmp 0x40036e9d
push str.Character_set_declaration_starting_with___terminated_prematurely___either_no___was_found_or_the_set_had_no_content.
call fcn.40054030
add esp, 4
push eax
push str.Character_set_declaration_starting_with___terminated_prematurely___either_no___was_found_or_the_set_had_no_content.
lea ecx, [esp + 0x2c]
call fcn.40002a62
sub esp, 0x18
mov dword [esp + 0x90], 0
mov esi, dword [edi + 0x5c]
lea eax, [esp + 0x3c]
sub esi, dword [edi + 0x54]
mov ecx, esp
sar esi, 1
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.400029ce
push esi
push esi
push 7
mov ecx, edi
call fcn.400341e0
cmp dword [esp + 0x38], 0x10
jb 0x40036f01
push dword [esp + 0x24]
call fcn.40053016
add esp, 4
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
lea ecx, [esp + 0x3c]
call fcn.40038910
mov dword [esp + 0x78], 1
mov eax, dword [edi + 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0x58]
je 0x400370b9
jmp 0x40036f40
mov eax, dword [edi + 4]
mov ebp, dword [edi + 0x5c]
mov ebx, dword [eax]
movzx edx, word [ebp]
mov esi, dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40036f75
lea ebx, [ebx]
cmp word [eax + 0xe], dx
jae 0x40036f6b
mov eax, dword [eax + 8]
jmp 0x40036f6f
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40036f60
cmp ecx, esi
je 0x40036f89
cmp dx, word [ecx + 0xe]
jb 0x40036f89
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
jmp 0x40036f91
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x1c]
mov eax, dword [eax]
cmp eax, esi
jne 0x40036f9b
xor eax, eax
jmp 0x40036f9f
movzx eax, byte [eax + 0x10]
movzx eax, al
add eax, 0xfffffffc
cmp eax, 8
ja case.0x40036fae.5
jmp dword [eax*4 + 0x400370e0]
cmp ebp, dword [esp + 0x20]
jne case.0x40036fae.5
lea eax, [ebp + 2]
mov byte [esp + 0x54], 1
mov dword [esp + 0x14], eax
mov dword [edi + 0x5c], eax
jmp 0x400370ad
cmp ebp, dword [esp + 0x14]
je case.0x40036fae.5
add dword [edi + 0x5c], 2
lea eax, [esp + 0x3c]
push ecx
mov ecx, edi
push eax
call fcn.4003e940
test eax, eax
jne 0x4003701f
mov eax, dword [edi + 0x5c]
mov ecx, edi
sub eax, dword [edi + 0x54]
sar eax, 1
push eax
push 4
call fcn.40034490
xor bl, bl
jmp 0x400370c2
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.40039750
test al, al
jne 0x400370ad
mov bl, 1
jmp 0x400370c2
mov ecx, dword [edi + 4]
lea eax, [ebp + 2]
mov dword [edi + 0x5c], eax
movzx eax, word [eax]
push eax
mov ecx, dword [ecx]
call fcn.40038ac0
cmp al, 0x16
jne 0x40037063
mov edx, dword [edi + 0x5c]
mov eax, dword [edi + 4]
lea ecx, [edx + 2]
push ecx
mov ecx, dword [eax]
push edx
call fcn.40035540
test eax, eax
je 0x4003709d
or dword [esp + 0x58], eax
add dword [edi + 0x5c], 2
mov byte [esp + 0x60], 0
jmp 0x400370ad
mov eax, dword [edi + 0x5c]
movzx ecx, word [eax]
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [eax]
call fcn.40038ac0
cmp al, 0x17
jne 0x4003709d
mov edx, dword [edi + 0x5c]
mov eax, dword [edi + 4]
lea ecx, [edx + 2]
push ecx
mov ecx, dword [eax]
push edx
call fcn.40035540
test eax, eax
je 0x4003709d
or dword [esp + 0x5c], eax
add dword [edi + 0x5c], 2
mov byte [esp + 0x60], 0
jmp 0x400370ad
add dword [edi + 0x5c], 0xfffffffe
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.400395e0
mov eax, dword [edi + 0x5c]
cmp eax, dword [edi + 0x58]
jne 0x40036f40
mov eax, dword [edi + 0x5c]
cmp eax, dword [edi + 0x58]
setne bl
lea ecx, [esp + 0x3c]
call fcn.40038650
mov ecx, dword [esp + 0x70]
mov al, bl
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret