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

Disassembly:
push 0xffffffffffffffff
push 0x417ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 0x60]
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x90]
xor edi, edi
push 0xffffffffffffffff
and eax, 0xffff
lea ecx, [ebp + 0x1c]
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], eax
mov dword [edx + 8], edi
call fcn.004019c0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x84], edi
lea esi, [edi + 6]
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], edi
call fcn.00404dc0
mov dword [esp + 0x18], edi
jmp 0x403744
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
imul eax, eax, 0x2c
mov edx, dword [esp + 0x90]
lea esi, [eax + ecx]
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.00404120
xor ecx, ecx
mov dword [esp + 0x30], eax
cmp eax, 1
jne 0x4038cd
mov eax, dword [ebp + 0x64]
cmp dword [ebp + 0x44], eax
jne 0x403783
push ecx
mov esi, ebp
call fcn.004032d0
cmp dword [esp + 0x24], 0
mov esi, dword [ebp + 0x44]
lea edx, [esi + 1]
mov dword [esp + 0x14], esi
mov dword [ebp + 0x44], edx
jne 0x40379b
mov dword [esp + 0x24], esi
mov edx, dword [ebp + 0x60]
mov eax, esi
and eax, 0xffff
mov ecx, esi
sar ecx, 0x10
shl eax, 5
add eax, dword [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], 0
mov ebx, dword [ebp + 0x60]
sar ecx, 0x10
mov ecx, dword [ebx + ecx*4]
mov edi, edx
and edi, 0xffff
shl edi, 5
lea edi, [ecx + edi + 0x14]
mov ecx, dword [edi]
test ecx, ecx
je 0x403836
mov edx, ecx
sar edx, 0x10
and ecx, 0xffff
add edx, edx
shl ecx, 5
add edx, edx
mov edi, dword [edx + ebx]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + ecx + 0x1c]
mov edi, ecx
mov dword [esp + 0x30], ecx
and ecx, 0xffff
sar edi, 0x10
mov edi, dword [ebx + edi*4]
shl ecx, 5
mov dword [edi + ecx + 0x18], esi
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0x60]
mov edx, dword [ecx + edx]
mov ecx, dword [esp + 0x28]
mov dword [edx + ecx + 0x1c], esi
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], 0
jmp 0x403842
mov dword [edi], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0xc], 0x80000
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov ebx, dword [eax + 8]
add edi, ecx
mov ecx, dword [eax + 0xc]
and ecx, 0xffff0000
or edi, ecx
mov dword [eax + 0xc], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + 0x14], 0
mov ecx, dword [edi + 4]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
and ebx, 0xffd00000
add ecx, ebx
mov dword [eax + 8], ecx
test dword [edi + 0xc], 0x10000
je 0x40389c
and ecx, 0x2fffff
mov dword [esp + 0x14], edx
mov dword [eax + 8], ecx
mov edx, dword [edi + 8]
mov dword [eax + 4], edx
jmp 0x403740
mov eax, dword [esp + 0x40]
inc dword [esp + 0x18]
inc eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x3c]
jne 0x403740
mov esi, dword [esp + 0x3c]
lea esi, [esi + esi + 6]
lea ecx, [esp + 0x38]
call fcn.00404dc0
jmp 0x403740
test eax, eax
jne 0x403c3b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov ebx, edi
test eax, eax
je 0x403b66
mov ecx, dword [esp + 0x38]
imul eax, eax, 0x2c
lea edi, [eax + ecx - 0x18]
mov dword [esp + 0x28], edi
cmp dword [edi + 0x14], 8
jb 0x4038fe
mov edi, dword [edi]
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
sub esi, eax
inc esi
test byte [ecx + 0x10], 8
push esi
push edi
je 0x403923
mov edx, dword [ecx + 0xc]
lea eax, [edx + eax*2]
push eax
call fcn.00407ac2
jmp 0x40392f
mov ecx, dword [ecx + 0xc]
lea edx, [ecx + eax*2]
push edx
call fcn.004083cb
add esp, 0xc
test eax, eax
jne 0x403951
movzx eax, word [edi + esi*2]
test ax, ax
je 0x403988
push eax
push str.____
call fcn.00408180
add esp, 8
test eax, eax
jne 0x403988
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0x60]
sub dword [esp + 0x28], 0x2c
mov ecx, ebx
and ebx, 0xffff
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
dec eax
shl ebx, 5
mov ebx, dword [ecx + ebx + 0x10]
mov dword [esp + 0x20], eax
test eax, eax
je 0x403b62
mov edi, dword [esp + 0x28]
jmp 0x4038f6
cmp dword [esp + 0x20], 0
mov edi, dword [esp + 0x14]
je 0x403b66
mov edx, dword [ebp + 0x60]
mov eax, dword [esp + 0x2c]
mov ecx, ebx
sar ecx, 0x10
and ebx, 0xffff
shl ebx, 5
add ebx, dword [edx + ecx*4]
mov ecx, dword [eax + 4]
sub ecx, dword [ebx]
mov edx, dword [ebx + 8]
add ecx, dword [eax + 8]
and edx, 0x2fffff
mov dword [ebx + 4], ecx
mov eax, dword [eax + 8]
shl eax, 0x16
add edx, eax
mov dword [ebx + 8], edx
cmp dword [esp + 0x20], 0
je 0x403744
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp edx, ecx
jle 0x403d88
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
or dword [eax + 0xc], 0x800000
mov eax, edx
sub eax, ecx
sub edx, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 0x60]
mov ecx, edi
and edi, 0xffff
sar ecx, 0x10
shl edi, 5
add edi, dword [edx + ecx*4]
and dword [edi + 8], 0x2fffff
or dword [edi + 0xc], 0x100000
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
and eax, 0x2fffff
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x14], 0
mov dword [edi + 4], eax
test ecx, 0x200000
je 0x403a77
xor ecx, 0x200000
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp + 0x60]
mov eax, ebx
sar eax, 0x10
mov eax, dword [ecx + eax*4]
mov esi, ebx
and esi, 0xffff
shl esi, 5
or dword [eax + esi + 0xc], 0x200000
lea eax, [eax + esi + 0xc]
test edx, edx
je 0x403adf
mov esi, dword [ebp + 0x60]
mov edi, edi
mov eax, edx
sar eax, 0x10
mov ecx, edx
add eax, eax
add eax, eax
mov esi, dword [eax + esi]
and ecx, 0xffff
shl ecx, 5
mov dword [esi + ecx + 0x10], ebx
mov esi, dword [ebp + 0x60]
mov ebx, dword [esi + eax]
mov esi, dword [esp + 0x14]
mov dword [ebx + ecx + 0x1c], esi
mov ebp, dword [ebp + 0x60]
mov ebx, esi
sar ebx, 0x10
mov ebx, dword [ebp + ebx*4]
mov ebp, dword [esp + 0x8c]
and esi, 0xffff
shl esi, 5
mov dword [ebx + esi + 0x18], edx
mov esi, dword [ebp + 0x60]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [eax + esi]
mov edx, dword [edx + ecx + 0x18]
test edx, edx
jne 0x403a80
mov eax, dword [esp + 0x40]
dec eax
cmp dword [ebp + 0x30], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], eax
jne 0x403d79
mov ecx, dword [esp + 0x38]
imul eax, eax, 0x2c
cmp dword [esp + 0x30], 0
jne 0x403d0d
mov edx, dword [esp + 0x90]
lea ebx, [eax + ecx]
mov eax, dword [edx + 4]
sub eax, dword [edx]
mov ecx, dword [ebx + 0x24]
inc eax
lea eax, [ecx + eax + 0x64]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004050ac
mov edx, dword [esp + 0x94]
add esp, 4
lea esi, [esp + 0x44]
mov dword [esp + 0x28], eax
call fcn.00403ed0
mov esi, 8
cmp dword [ebx + 0x28], esi
jb 0x403c9a
mov ebx, dword [ebx + 0x14]
jmp 0x403c9d
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 0x60]
mov eax, dword [edx]
or dword [eax + 0xc], 0x800000
mov ecx, dword [ebp + 0x60]
mov eax, edi
sar eax, 0x10
mov eax, dword [ecx + eax*4]
mov edx, edi
and edx, 0xffff
shl edx, 5
or dword [eax + edx + 0xc], 0x200000
cmp dword [ebp + 0x30], 0
lea eax, [eax + edx + 0xc]
jne 0x4039ce
mov esi, dword [esp + 0x90]
mov eax, dword [esi + 4]
sub eax, dword [esi]
xor ecx, ecx
add eax, 0x65
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004050ac
mov edx, esi
add esp, 4
lea esi, [esp + 0x60]
mov ebx, eax
call fcn.00403ed0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x403be2
mov eax, dword [eax + 4]
jmp 0x403be5
add eax, 4
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
push edx
push eax
push str.No_start_tag_for_end_tag__s_at_offset__d
push ebx
call fcn.00407232
add esp, 0x10
cmp dword [esp + 0x78], esi
jb 0x403c0f
mov eax, dword [esp + 0x64]
push eax
call fcn.00406e6d
add esp, 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c14
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004015c0
push ebx
call fcn.00406ef5
add esp, 4
jmp 0x4039ce
cmp eax, 0xffffffff
jne 0x403c8c
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
or dword [eax + 0xc], 0x800000
mov edx, dword [ebp + 0x60]
mov ecx, edi
mov eax, edi
and eax, 0xffff
sar ecx, 0x10
mov ecx, dword [edx + ecx*4]
shl eax, 5
or dword [ecx + eax + 0xc], 0x200000
cmp dword [ebp + 0x30], 0
lea eax, [ecx + eax + 0xc]
jne 0x403744
push 0xffffffffffffffff
add esi, 0x10
push 0
push esi
lea ecx, [ebp + 0x1c]
call fcn.00401d70
jmp 0x403744
cmp eax, 0xfffffffe
jne 0x403744
jmp 0x4039dd
add ebx, 0x14
cmp dword [eax + 0x18], esi
jb 0x403ca7
mov eax, dword [eax + 4]
jmp 0x403caa
add eax, 4
mov ecx, dword [edi]
mov edx, dword [esp + 0x90]
mov edi, dword [esp + 0x28]
push ecx
mov ecx, dword [edx]
push ebx
dec ecx
push ecx
push eax
push str.End_tag__s_at_offset__d_does_not_match_start_tag__s_at_offset__d
push edi
call fcn.00407232
add esp, 0x18
cmp dword [esp + 0x5c], esi
jb 0x403cdf
mov edx, dword [esp + 0x48]
push edx
call fcn.00406e6d
add esp, 4
xor eax, eax
mov word [esp + 0x48], ax
mov eax, edi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
lea edx, [eax + 2]
jmp 0x403d00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d00
jmp 0x403d62
lea esi, [eax + ecx]
mov eax, dword [esi + 0x24]
xor ecx, ecx
add eax, 0x64
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004050ac
add esp, 4
cmp dword [esi + 0x28], 8
mov edi, eax
jb 0x403d3c
mov eax, dword [esi + 0x14]
jmp 0x403d3f
lea eax, [esi + 0x14]
mov ecx, dword [esi + 4]
push ecx
push eax
push str.Element__s_at_offset__d_not_ended
push edi
call fcn.00407232
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d57
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp + 0x1c]
call fcn.004015c0
push edi
call fcn.00406ef5
add esp, 4
sub dword [esp + 0x2c], 1
mov edi, dword [esp + 0x14]
jne 0x403a03
cmp dword [esp + 0x30], 0xfffffffe
je 0x403dc1
mov eax, dword [ebp + 0x60]
mov edx, edi
sar edx, 0x10
mov ecx, dword [eax + edx*4]
and edi, 0xffff
shl edi, 5
mov eax, dword [ecx + edi + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, 1
sub dword [esp + 0x40], eax
sub dword [esp + 0x18], eax
jmp 0x403740
mov dword [esp + 0x84], 0xffffffff
mov eax, dword [esp + 0x38]
test eax, eax
je 0x403df1
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push 0x402110
push edx
push 0x2c
push eax
call fcn.00406f5e
push esi
call fcn.00406ef5
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8