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

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
xor esi, esi
push esi
lea ecx, [edi + 0x4c]
push 0x51f2aa
mov byte [edi + 0x44], 0
mov dword [edi + 0x48], esi
call fcn.00401eb0
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
mov dword [edi + 0x70], esi
mov dword [edi + 0x6c], esi
je 0x4364b8
cmp byte [ecx], 0
je 0x4364b8
mov eax, 0xffffffff
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x436299
mov edx, dword [eax]
mov dword [edi + 4], edx
mov eax, dword [eax + 4]
mov dword [edi + 8], eax
jmp 0x43629f
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov edx, dword [edi + 0x68]
mov eax, dword [edi + 4]
push ebp
mov ebp, dword [esp + 0x28]
cmp ebp, esi
mov dword [esp + 0x18], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [edi + 4], eax
mov dword [edi + 8], edx
jne 0x4362ec
mov al, byte [ecx]
test al, al
je 0x4362ec
cmp al, 0xef
jne 0x4362ec
mov al, byte [ecx + 1]
test al, al
je 0x4362ec
cmp al, 0xbb
jne 0x4362ec
mov al, byte [ecx + 2]
test al, al
je 0x4362ec
cmp al, 0xbf
jne 0x4362ec
mov ebp, 1
push ebx
mov eax, ebp
call fcn.004359c0
mov ebx, eax
cmp ebx, esi
jne 0x436341
mov al, byte [edi + 0x44]
test al, al
jne 0x436333
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x436317
sub eax, ebx
push eax
push edx
lea ecx, [edi + 0x4c]
call fcn.00401eb0
or eax, 0xffffffff
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], eax
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
xor esi, esi
cmp byte [ebx], 0
je 0x436475
push edi
mov edx, ebp
mov ecx, ebx
call fcn.00436570
mov esi, eax
test esi, esi
je 0x436473
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x14]
push ecx
push ebx
mov ecx, esi
call dword [eax + 8]
mov dword [esi + 0x10], edi
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], 0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x43638c
mov dword [eax + 0x40], esi
jmp 0x43638f
mov dword [edi + 0x18], esi
test ebp, ebp
mov dword [edi + 0x1c], esi
jne 0x43645e
cmp dword [esi + 0x14], 5
jne 0x43645e
cmp dword [esi + 0x78], 0x10
jb 0x4363b3
mov esi, dword [esi + 0x64]
mov dword [esp + 0x28], esi
jmp 0x4363ba
add esi, 0x64
mov dword [esp + 0x28], esi
cmp byte [esi], 0
jne 0x4363c9
mov ebp, 1
jmp 0x43645e
mov ebp, str.UTF_8
sub esi, ebp
cmp byte [ebp], 0
je 0x436402
movsx eax, byte [esi + ebp]
push eax
call fcn.004c59d5
mov ebx, eax
movsx eax, byte [ebp]
push eax
call fcn.004c59d5
add esp, 8
cmp ebx, eax
jne 0x4363fc
mov al, byte [esi + ebp + 1]
inc ebp
test al, al
jne 0x4363d0
cmp byte [ebp], 0
jne 0x436409
mov ebp, 1
jmp 0x43645e
mov ebx, dword [esp + 0x28]
cmp byte [ebx], 0
mov ebp, str.UTF8
je 0x436459
sub ebx, ebp
lea esp, [esp]
cmp byte [ebp], 0
je 0x436452
movsx eax, byte [ebx + ebp]
push eax
call fcn.004c59d5
mov esi, eax
movsx eax, byte [ebp]
push eax
call fcn.004c59d5
add esp, 8
cmp esi, eax
jne 0x43644c
mov al, byte [ebx + ebp + 1]
inc ebp
test al, al
jne 0x436420
cmp byte [ebp], 0
jne 0x436459
mov ebp, 1
jmp 0x43645e
mov ebp, 2
mov ecx, dword [esp + 0x24]
mov eax, ebp
call fcn.004359c0
mov ebx, eax
test ebx, ebx
jne 0x43633f
xor esi, esi
cmp dword [edi + 0x18], esi
jne 0x4364ac
mov al, byte [edi + 0x44]
test al, al
jne 0x436333
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea ebx, [eax + 1]
jmp 0x4364a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4364a0
jmp 0x43631e
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x10
ret 0xc
mov al, byte [edi + 0x44]
test al, al
jne 0x4364f1
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 0xd
mov edx, dword [str.Error_document_empty.]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4364d5
sub eax, esi
push eax
push edx
lea ecx, [edi + 0x4c]
call fcn.00401eb0
or eax, 0xffffffff
mov dword [edi + 0x70], eax
mov dword [edi + 0x6c], eax
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc